<?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>partofus.org Mac-Tests &#187; prompt</title>
	<atom:link href="http://mac.partofus.org/macpress/tags/prompt/feed/" rel="self" type="application/rss+xml" />
	<link>http://mac.partofus.org/macpress</link>
	<description></description>
	<lastBuildDate>Mon, 31 Aug 2009 16:26:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Terminal tricks</title>
		<link>http://mac.partofus.org/macpress/2008/02/23/tricks-fur-das-terminal/</link>
		<comments>http://mac.partofus.org/macpress/2008/02/23/tricks-fur-das-terminal/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 15:38:44 +0000</pubDate>
		<dc:creator>Christoph Erdle</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://mac.partofus.org/macpress/?p=80</guid>
		<description><![CDATA[Everybody using the Macs command line interface frequently can customize it with some very simple steps. Customize Prompt To customize the default bash prompt you have to edit the environment variable &#8220;PS1&#8243;. The standard prompt of Mac OS X looks like the following: hermes:~ eddie$ You can use multiple further options on this prompt e.g. [...]]]></description>
			<content:encoded><![CDATA[<p>Everybody using the Macs command line interface frequently can customize it with some very simple steps.</p>
<h3>Customize Prompt</h3>
<p>To customize the default bash prompt you have to edit the environment variable &#8220;PS1&#8243;. The standard prompt of Mac OS X looks like the following:</p>
<pre>hermes:~ eddie$</pre>
<p>You can use multiple further options on this prompt e.g. to show the time, command number, coloring parts of the prompt. If you want to create a prompt like</p>
<pre><span style="color: #ccffff;">15:43:38</span> <span style="color: #00ff00;">eddie@hermes:</span> ~ (1) $</pre>
<p>you have to insert the following line into ~/.bash_profile:</p>
<pre>export PS1="\[\e[0;36m\]\t \[\e[0;32m\]\u@\h:
 \[\e[0m\]\w (\#) $ "</pre>
<p>(Insert the above command in <strong>one line</strong>!)</p>
<p>You can get further infromation from the bash man page. A <a href="http://networking.ringofsaturn.com/Unix/Bash-prompts.php" target="_blank">detailed tutorial</a> to customize the prompt is also available. You can find an overview about the different color codes at the <a href="http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html" target="_blank">Bash Prompt How-To</a>. Also you should read the <a href="http://tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html" target="_blank">complete How-To</a> to tame bash.</p>
<h3>colored output for &#8220;ls&#8221;</h3>
<p>To color specific files (symbolic links, directories) you can call &#8220;ls&#8221; with the option &#8220;-G&#8221;:</p>
<pre>hermes:~ eddie$ ls -G</pre>
<p>You can define this command as an alias inserting the following into ~/.bash_profile to activate the colored output by default:</p>
<pre>alias ls="ls -G"</pre>
<p>Alternatively you can set the environment variable &#8220;CLICOLOR&#8221;:</p>
<pre>export CLICOLOR="yes"</pre>
<div class="link-summarizer"><h3>Zusammenfassung der Links</h3>
<ul>

<li><a href='http://networking.ringofsaturn.com/Unix/Bash-prompts.php' target="_blank">http://networking.ringof...m/Unix/Bash-prompts.php</a></li>

<li><a href='http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html' target="_blank">http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html</a></li>

<li><a href='http://tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html' target="_blank">http://tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html</a></li>

</ul></div>]]></content:encoded>
			<wfw:commentRss>http://mac.partofus.org/macpress/2008/02/23/tricks-fur-das-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
