<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: My ZSH Prompt</title>
	<atom:link href="http://pthree.org/2008/01/31/my-zsh-prompt/feed/" rel="self" type="application/rss+xml" />
	<link>http://pthree.org/2008/01/31/my-zsh-prompt/</link>
	<description>Linux.  GNU.  Freedom.</description>
	<pubDate>Sat, 30 Aug 2008 06:05:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7-hemorrhage</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mjg</title>
		<link>http://pthree.org/2008/01/31/my-zsh-prompt/#comment-101726</link>
		<dc:creator>mjg</dc:creator>
		<pubDate>Fri, 30 May 2008 20:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=544#comment-101726</guid>
		<description>this is in my .zshrc:

local smiley="%(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color%})"
PROMPT=$'%{\e[0;36m%}%B[%b%{\e[0m%}%B%n%b%{\e[0;36m%}%B@%b%{\e[0m%}%B%m%b%{\e[0;36m%}%B]%b%{\e[0;36m%}%B[%b%{\e[0m%}%B${smiley}%b%{\e[0;36m%}%B]%b%{\e[0m%}%B%#%b

looks like this:

[user@host][:)] % cd sh
[user@host][:)] % ls foo
ls: cannot access foo: No such file or directory
[user@host][:(] %

It will show a green smiley if the last command finished successfully, or a red frowney if it did not.</description>
		<content:encoded><![CDATA[<p>this is in my .zshrc:</p>
<p>local smiley=&#8221;%(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color%})&#8221;<br />
PROMPT=$&#8217;%{\e[0;36m%}%B[%b%{\e[0m%}%B%n%b%{\e[0;36m%}%B@%b%{\e[0m%}%B%m%b%{\e[0;36m%}%B]%b%{\e[0;36m%}%B[%b%{\e[0m%}%B${smiley}%b%{\e[0;36m%}%B]%b%{\e[0m%}%B%#%b</p>
<p>looks like this:</p>
<p>[user@host][:)] % cd sh<br />
[user@host][:)] % ls foo<br />
ls: cannot access foo: No such file or directory<br />
[user@host][:(] %</p>
<p>It will show a green smiley if the last command finished successfully, or a red frowney if it did not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous bin Ich</title>
		<link>http://pthree.org/2008/01/31/my-zsh-prompt/#comment-95654</link>
		<dc:creator>Anonymous bin Ich</dc:creator>
		<pubDate>Fri, 04 Apr 2008 17:02:23 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=544#comment-95654</guid>
		<description>___________________

PROMPT=$'%(?..%{\e[41;38m%}%B-%?-%b%{\e[0m%} )%(1j.%{\e[01;33m%}[%j] .)%{\e[01;32m%}%m%{\e[0m%} %{\e[01;36m%}%2~%{\e[0m%} %B%#%b '
RPROMPT=$'%{\e[00;07m%}%(?..$exitstuff)% %{\e[0m%} %T'

# Taken and modified from "atom's .zshrc" public release v0.109 - http://smasher.org/zsh/
precmd () {
  local exitstatus="${?}"
  if [[ ${exitstatus} -ge 128 &#38;&#38; $exitstatus -le (127+${#signals}) ]]; then
	  # Last process was killed by a signal.  Find out what it was from
	  # the $signals environment variable.
	  exitstuff="${signals[${exitstatus}-127]}"
  else
	  unset exitstuff
  fi
}

___________________
The function here tells you the name of the interrupt, which I like :)
Also, RPROMPT tells the time in reverse video, so no problem while testing different themes etc. Although I am planning to switch it to the left so that copy-pasting can become easier :)</description>
		<content:encoded><![CDATA[<p>___________________</p>
<p>PROMPT=$&#8217;%(?..%{\e[41;38m%}%B-%?-%b%{\e[0m%} )%(1j.%{\e[01;33m%}[%j] .)%{\e[01;32m%}%m%{\e[0m%} %{\e[01;36m%}%2~%{\e[0m%} %B%#%b '<br />
RPROMPT=$'%{\e[00;07m%}%(?..$exitstuff)% %{\e[0m%} %T'</p>
<p># Taken and modified from "atom's .zshrc" public release v0.109 - <a href="http://smasher.org/zsh/" rel="nofollow">http://smasher.org/zsh/</a><br />
precmd () {<br />
  local exitstatus="${?}"<br />
  if [[ ${exitstatus} -ge 128 &amp;&amp; $exitstatus -le (127+${#signals}) ]]; then<br />
	  # Last process was killed by a signal.  Find out what it was from<br />
	  # the $signals environment variable.<br />
	  exitstuff=&#8221;${signals[${exitstatus}-127]}&#8221;<br />
  else<br />
	  unset exitstuff<br />
  fi<br />
}</p>
<p>___________________<br />
The function here tells you the name of the interrupt, which I like <img src='http://pthree.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Also, RPROMPT tells the time in reverse video, so no problem while testing different themes etc. Although I am planning to switch it to the left so that copy-pasting can become easier <img src='http://pthree.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hobbsee</title>
		<link>http://pthree.org/2008/01/31/my-zsh-prompt/#comment-90394</link>
		<dc:creator>Hobbsee</dc:creator>
		<pubDate>Fri, 01 Feb 2008 09:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=544#comment-90394</guid>
		<description>Thanks thom!  I'd been wondering about a different remote prompt!  Mine now is:

if test `whoami` != "root"
then
  PS1="${fg_light_cyan}%B%n@%m:${fg_light_blue}%~${fg_light_gray}%#%b "
else
  PS1="${fg_red}%B%n@%m:${fg_red}%~${fg_light_gray}%#%b "
fi
RPROMPT="${fg_cyan}%t${fg_no_colour}"</description>
		<content:encoded><![CDATA[<p>Thanks thom!  I&#8217;d been wondering about a different remote prompt!  Mine now is:</p>
<p>if test `whoami` != &#8220;root&#8221;<br />
then<br />
  PS1=&#8221;${fg_light_cyan}%B%n@%m:${fg_light_blue}%~${fg_light_gray}%#%b &#8221;<br />
else<br />
  PS1=&#8221;${fg_red}%B%n@%m:${fg_red}%~${fg_light_gray}%#%b &#8221;<br />
fi<br />
RPROMPT=&#8221;${fg_cyan}%t${fg_no_colour}&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn</title>
		<link>http://pthree.org/2008/01/31/my-zsh-prompt/#comment-90324</link>
		<dc:creator>Glenn</dc:creator>
		<pubDate>Thu, 31 Jan 2008 21:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=544#comment-90324</guid>
		<description>My PS1 prompt is pretty basic:
PS1=%B%m%b &#62;

but what I really like is the right justified prompt which is where I display the current directory...

RPROMPT=%~</description>
		<content:encoded><![CDATA[<p>My PS1 prompt is pretty basic:<br />
PS1=%B%m%b &gt;</p>
<p>but what I really like is the right justified prompt which is where I display the current directory&#8230;</p>
<p>RPROMPT=%~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://pthree.org/2008/01/31/my-zsh-prompt/#comment-90316</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Thu, 31 Jan 2008 19:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=544#comment-90316</guid>
		<description>I can respect that you don't like multi-line prompts (sometimes they can really get in the way, or make the terminal look *super* busy (the clint theme is three (!) lines)). In spite of that, here's a quick note about the bad default colors:

prompt clint blue cyan white yellow white
prompt -h clint

Regardless, nice writeup of a simple and elegant prompt.</description>
		<content:encoded><![CDATA[<p>I can respect that you don&#8217;t like multi-line prompts (sometimes they can really get in the way, or make the terminal look *super* busy (the clint theme is three (!) lines)). In spite of that, here&#8217;s a quick note about the bad default colors:</p>
<p>prompt clint blue cyan white yellow white<br />
prompt -h clint</p>
<p>Regardless, nice writeup of a simple and elegant prompt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Robertson</title>
		<link>http://pthree.org/2008/01/31/my-zsh-prompt/#comment-90309</link>
		<dc:creator>Scott Robertson</dc:creator>
		<pubDate>Thu, 31 Jan 2008 18:45:30 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=544#comment-90309</guid>
		<description>PROMPT=$'%(!.%{\e[1;31m%}.%{\e[1;32m%})%n@%{\e[1;34m%}%m:%{\e[1;31m%}%1~%{\e[1;00m%}%(!.#.$)'
RPROMPT='%(?..%?)'

name@host:(last element of pwd)$
At far right is the exit code if not 0.
Colors make it a bit hard to read.</description>
		<content:encoded><![CDATA[<p>PROMPT=$&#8217;%(!.%{\e[1;31m%}.%{\e[1;32m%})%n@%{\e[1;34m%}%m:%{\e[1;31m%}%1~%{\e[1;00m%}%(!.#.$)&#8217;<br />
RPROMPT=&#8217;%(?..%?)&#8217;</p>
<p>name@host:(last element of pwd)$<br />
At far right is the exit code if not 0.<br />
Colors make it a bit hard to read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eddie</title>
		<link>http://pthree.org/2008/01/31/my-zsh-prompt/#comment-90302</link>
		<dc:creator>eddie</dc:creator>
		<pubDate>Thu, 31 Jan 2008 17:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=544#comment-90302</guid>
		<description>What is ZSH?

cool dude. We are heading to a momentum when everybody can handle xorg.conf or grub but doesn't know what bash is.

computer illiterates ftw! 

PS: copying your $PS1 to my ~/.bashrc at light speed</description>
		<content:encoded><![CDATA[<p>What is ZSH?</p>
<p>cool dude. We are heading to a momentum when everybody can handle xorg.conf or grub but doesn&#8217;t know what bash is.</p>
<p>computer illiterates ftw! </p>
<p>PS: copying your $PS1 to my ~/.bashrc at light speed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: My ZSH Prompt</title>
		<link>http://pthree.org/2008/01/31/my-zsh-prompt/#comment-90300</link>
		<dc:creator>My ZSH Prompt</dc:creator>
		<pubDate>Thu, 31 Jan 2008 16:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=544#comment-90300</guid>
		<description>[...] unknown wrote an interesting post today onHere&#8217;s a quick excerptaaron@kratos:~ 262 % ls -ld tmp drwxrwxr-x 2 aaron root 4096 2008-01-30 13:22 tmp aaron@kratos:~ 263 % rm -rf tmp aaron@kratos:~ 264 % ls -ld tmp ls: tmp: No such file or directory aaron@kratos:~[2] 265 % echo $? 2 aaron@kratos:~ 266 % &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] unknown wrote an interesting post today onHere&#8217;s a quick excerptaaron@kratos:~ 262 % ls -ld tmp drwxrwxr-x 2 aaron root 4096 2008-01-30 13:22 tmp aaron@kratos:~ 263 % rm -rf tmp aaron@kratos:~ 264 % ls -ld tmp ls: tmp: No such file or directory aaron@kratos:~[2] 265 % echo $? 2 aaron@kratos:~ 266 % &#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Smarter</title>
		<link>http://pthree.org/2008/01/31/my-zsh-prompt/#comment-90298</link>
		<dc:creator>Smarter</dc:creator>
		<pubDate>Thu, 31 Jan 2008 16:12:16 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=544#comment-90298</guid>
		<description>[smarter@fenny ~/Builds/revu/extremetuxracer]% echo $PS1
%{$reset_color$bold_color$fg[green]%}[%{$reset_color$reset_color$fg[green]%}%n%{$reset_color$bold_color$fg[green]%}@%{$reset_color$reset_color$fg[green]%}%m%{$reset_color$bold_color$fg[green]%} %{$reset_color$reset_color$fg[cyan]%}%~%{$reset_color$bold_color$fg[green]%}]%{$reset_color$reset_color$fg[green]%}%# %{$reset_color$reset_color%}
Clean and green (:</description>
		<content:encoded><![CDATA[<p>[smarter@fenny ~/Builds/revu/extremetuxracer]% echo $PS1<br />
%{$reset_color$bold_color$fg[green]%}[%{$reset_color$reset_color$fg[green]%}%n%{$reset_color$bold_color$fg[green]%}@%{$reset_color$reset_color$fg[green]%}%m%{$reset_color$bold_color$fg[green]%} %{$reset_color$reset_color$fg[cyan]%}%~%{$reset_color$bold_color$fg[green]%}]%{$reset_color$reset_color$fg[green]%}%# %{$reset_color$reset_color%}<br />
Clean and green (:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tuxero</title>
		<link>http://pthree.org/2008/01/31/my-zsh-prompt/#comment-90293</link>
		<dc:creator>Tuxero</dc:creator>
		<pubDate>Thu, 31 Jan 2008 15:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=544#comment-90293</guid>
		<description>What is ZSH?
This is the first time I hear about it.
Cheers mate!</description>
		<content:encoded><![CDATA[<p>What is ZSH?<br />
This is the first time I hear about it.<br />
Cheers mate!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thom May</title>
		<link>http://pthree.org/2008/01/31/my-zsh-prompt/#comment-90292</link>
		<dc:creator>Thom May</dc:creator>
		<pubDate>Thu, 31 Jan 2008 15:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=544#comment-90292</guid>
		<description>if [[ -n $SSH_CLIENT &#124;&#124; -n $REMOTEHOST ]] then
        PS1=': ${CHROOT}%T %(5~&#124;.../%2c&#124;%~) %# '
        RPROMPT=%n@%m
else
        PS1=': ${CHROOT}%T %(5~&#124;.../%2c&#124;%~) %# '
fi</description>
		<content:encoded><![CDATA[<p>if [[ -n $SSH_CLIENT || -n $REMOTEHOST ]] then<br />
        PS1=&#8217;: ${CHROOT}%T %(5~|&#8230;/%2c|%~) %# &#8216;<br />
        RPROMPT=%n@%m<br />
else<br />
        PS1=&#8217;: ${CHROOT}%T %(5~|&#8230;/%2c|%~) %# &#8216;<br />
fi</p>
]]></content:encoded>
	</item>
</channel>
</rss>
