2005-06-12 19:17:19 UTC
Zsh is much more powerful shell than bash, and you can use almost all constructs of bash in zsh.
This is a short howto for zsh
2. Put something like
Code:
[[ $hilite = "on" ]] || hilite="on" exec hilite zsh
into one of your initialisation files
3. The prompt is sometimes returned before the hilite does the colouring so I find it useful to put something into precmd():
Code:
precmd () {sleep 0}
The colouring does not work on ttys on the computers I use; nonetheless hilite can easily be patched (you can also change the colour). So what I do is
Code:
patch hilite-1.5.c <<EOF
36c36
< #define HEADER "\033[91m"
---
> #define HEADER "\033[1m\033[31m"
EOF