<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sommermann.com &#187; Unix</title>
	<atom:link href="http://www.sommermann.com/tag/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sommermann.com</link>
	<description>Grafik, Webdesign, Fotografie, Programmierung, Architekturen</description>
	<lastBuildDate>Sun, 13 Nov 2011 22:48:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Bash History Keybinding</title>
		<link>http://www.sommermann.com/2008/10/22/bash-history-keybinding/</link>
		<comments>http://www.sommermann.com/2008/10/22/bash-history-keybinding/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 21:05:57 +0000</pubDate>
		<dc:creator>tso</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.sommermann.com/?p=88</guid>
		<description><![CDATA[Es ist mal wieder wie verhext. Man ist von SuSE bzgl. der Commandline ziemlich verwöhnt. Im Mac muss man hin und wieder das eine oder andere anpassen oder einstellen. Um auf der Kommandozeile Teilbegriffe und -befehle zu finden, musste man bei SuSE nur den Anfang des Befehls eingeben und konnte mit den Cursor rauf/runter Tasten [...]]]></description>
			<content:encoded><![CDATA[<p>Es ist mal wieder wie verhext. Man ist von SuSE bzgl. der Commandline ziemlich verwöhnt. Im Mac muss man hin und wieder das eine oder andere anpassen oder einstellen.</p>
<p>Um auf der Kommandozeile Teilbegriffe und -befehle zu finden, musste man bei SuSE nur den Anfang des Befehls eingeben und konnte mit den Cursor rauf/runter Tasten alle bereits getätigten Kommandos mit diesem Anfang anzeigen lassen. <span id="more-88"></span> Sehr praktisch, wenn man mal einen <strong>tail</strong> Befehl mit vielen Parametern irgendwo eingab und diese Eingabe so ziemlich 50-100 Einträge in der Vergangenheit zurück lag. Ein <strong>tail [cursor up]</strong> lieferte den ersten Tail Befehl, den man schon mal eingegeben hatte.</p>
<p>Hier der Inhalt meiner <strong>.inputrc</strong>:</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># .inputrc</span>
<span style="color: #000000; font-weight: bold;">set</span> completion-ignore-case off
<span style="color: #000000; font-weight: bold;">set</span> page-completions off
<span style="color: #000000; font-weight: bold;">set</span> show-all-if-ambiguous on
<span style="color: #000000; font-weight: bold;">set</span> meta-flag on
<span style="color: #000000; font-weight: bold;">set</span> convert-meta off
<span style="color: #000000; font-weight: bold;">set</span> output-meta on</pre>
</div>
</div>
<p>&#8230; und hier der Inhalt der <strong>.profile</strong> oder <strong>.bash_profile</strong>:</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'&quot;\e[A&quot;'</span>:history-search-backward
<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">'&quot;\e[B&quot;'</span>:history-search-forward</pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sommermann.com/2008/10/22/bash-history-keybinding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X Shell</title>
		<link>http://www.sommermann.com/2008/10/14/mac-os-x-shell/</link>
		<comments>http://www.sommermann.com/2008/10/14/mac-os-x-shell/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 09:14:38 +0000</pubDate>
		<dc:creator>tso</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.sommermann.com/?p=46</guid>
		<description><![CDATA[Unix auf Mac OS X Anbei ein Artikel über Verbesserungen und Hilfscripte für die Mac OS X Shell. Mac OS X basiert bekanntlich auf einem BSD Unix und auch aus diesem Grund ist es mittlerweile zum Betriebssystem meiner Wahl avanciert. Wenn man jedoch von der Linux Seite kommt, ist man einiges an Komfort auf der [...]]]></description>
			<content:encoded><![CDATA[<h3>Unix auf Mac OS X</h3>
<p>Anbei ein Artikel über Verbesserungen und Hilfscripte für die Mac OS X Shell.<br />
Mac OS X basiert bekanntlich auf einem BSD Unix und auch aus diesem Grund ist es mittlerweile zum Betriebssystem meiner Wahl avanciert. Wenn man jedoch von der Linux Seite kommt, ist man einiges an Komfort auf der Kommandozeilenebene gewöhnt. Dies muss man nach und nach dem Apfel beibringen.<br />
Hier ein paar Einstellungen, die ich für mich als sinnvoll erachtet habe.</p>
<h3><span id="more-46"></span>Terminal Hintergrundfarbe setzen</h3>
<p>Da ich immer viele Terminalsessions offen habe, kann ich selten schnell eine bestimmte Session wiederfinden. Farben werden besser wahrgenommen, also habe ich mich mal umgeschaut, wie man die Terminalfarben per Commandline setzen kann. Auf dieser <a href="http://www.red-sweater.com/blog/220/random-color-terminal">Seite</a> bin ich fündig geworden und habe das ganze in ein kleines Shellscript verpackt:</p>
<h4>setcolor.sh</h4>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;">osascript</pre>
</div>
</div>
<p><strong>setcolor.sh</strong> in die <strong>.bash_profile</strong> packen und jede neue Shell besitzt eine andere Farbkombination. Dadurch, dass man mit den offenen Shells länger arbeitet, assoziiert man schnell eine Farbe mit dem dort laufenden Log/Server/Build/etc.</p>
<p><center><img class="aligncenter size-medium wp-image-51" title="Farbige Terminal Sessions" src="http://www.sommermann.com/wp-content/uploads/2008/10/bild-2-300x208.png" alt="" width="300" height="208" /></center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sommermann.com/2008/10/14/mac-os-x-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

