initial commit: 1.5.0
[systemrescuecd.git] / overlay-squashfs-sparc / root / .zsh / rc / prompt.rc
1 # for have colors
2 autoload -U colors
3 colors
4
5 # define your colors here (i hate white background)
6 host_color="green" 
7 path_color="blue"
8 date_color="white"
9
10 # Format
11 date_format="%H:%M"
12
13 date="%{$fg[$date_color]%}%D{$date_format}"
14 host="%{$fg[$host_color]%}%n@%m"
15 cpath="%B%{$fg[$path_color]%}%/%b"
16 end="%{$reset_color%}%% "
17
18 # enjoy 256 colors in xterm !!! (thanks to Denis Bodor)
19 # Note : your xterm _must_ have compiled with 256 colors support !!
20 # This is *not* the default !
21 if [[ $TERM == "xterm" ]]; then
22         PS1="$host $cpath $end"
23 else
24         PS1="$date $host $cpath $end"
25 fi