<div style="font-family: Helvetica; font-size: 13px; ">It took me a couple of hours just to switch from bash to zsh, 10-15 minutes adjusting certain things in my dotfiles, and the rest to play with and configure the new toys in zsh :)<br></div>
<div></div>
<p style="color: #A0A0A8;">On Tuesday, 10 January 2012 at 12:22, Andrew Stewart wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div><br></div><div>On 9 Jan 2012, at 15:20, Andrew Stewart wrote:</div><blockquote type="cite"><div>I'm having trouble incorporating the exit status of the last command into my bash prompt. My prompt executes a couple of commands to display the current Ruby version and the current git status, and then I want to use the exit status of the last command to control the colour of the final character (e.g. $).</div></blockquote><div><br></div><div>Thanks everyone for your help and suggestions. It was interesting looking at the different solutions. In the end I went with Viktor's method of setting up PS1 in PROMPT_COMMAND.</div><div><br></div><div><a href="https://github.com/airblade/dotfiles/blob/master/bash/prompt">https://github.com/airblade/dotfiles/blob/master/bash/prompt</a></div><div><br></div><div>As for switching to zsh, I've intended to ever since reading "From Bash to Z Shell" by Kiddle, Peek, and Stephenson about three years ago! One day I'll switch.</div><div><br></div><div>Thanks again,</div><div>Andy</div><div>-------</div><div><a href="http://airbladesoftware.com">http://airbladesoftware.com</a></div><div><br></div><div>_______________________________________________</div><div>Chat mailing list</div><div><a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a></div><div><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>