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.
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.