jeroen.se
by jnieuwen
switching to the zsh shell
Last friday I read something about the better completion features of zsh compared to bash. So I gave zsh a try. In zsh I could import and use my bash aliases so the only two things left to do was configure a usefull prompt and getting the command line completion to work.
My zsh prompt
In zsh you have 2 main prompts: PS1 and RPS1. PS1 has the same function as in bash. RPS1 is an extra prompt which will be displayed on the right-hand side of the screen. I decided to set RPS1 to the current time. And after some thinking I had my prompts ready which look like:
(~blog) (jobs: 0)
[1004][jnieuwen@idunn]%                                    13:57:33
This prompt is generated with the following code:
export RPS1="%D{%H:%M:%S}"
export PS1="(%4~) (jobs: %j)
[%!][%{${fg[blue]}%}%B%n%{${fg[yellow]}%}@%{${fg[green]}%}%m%b%{${fg[default]}%}]%# "
Later this week more about configuring the commandline completion.
0 comments

Nick:
Email:
Make your own addition with integers (needed to make sure you aint a spambot):
+ =
Categories
Cycling (2)
Gadgets (3)
Misc (22)
Scripting (23)
Travel (7)
Unix (24)
Archive
April 2010 (2)
January 2010 (1)
December 2009 (1)
November 2009 (2)
May 2009 (1)
April 2009 (1)
March 2009 (1)
February 2009 (7)
January 2009 (3)
December 2008 (1)
November 2008 (4)
October 2008 (5)
September 2008 (1)
August 2008 (3)
July 2008 (2)
June 2008 (2)
May 2008 (3)
April 2008 (1)
March 2008 (1)
February 2008 (1)
January 2008 (4)
December 2007 (1)
November 2007 (7)
October 2007 (4)
September 2007 (1)
August 2007 (2)
June 2007 (6)
May 2007 (8)