diff options
Diffstat (limited to 'Functions/Prompts/prompt_oliver_setup')
-rw-r--r-- | Functions/Prompts/prompt_oliver_setup | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Functions/Prompts/prompt_oliver_setup b/Functions/Prompts/prompt_oliver_setup index f7c4c7e5a..44d3f99ae 100644 --- a/Functions/Prompts/prompt_oliver_setup +++ b/Functions/Prompts/prompt_oliver_setup @@ -24,18 +24,18 @@ prompt_oliver_setup() { [[ "${(t)pcolour}" != assoc* ]] && typeset -Ag pcolour [[ "${(t)tcolour}" != assoc* ]] && typeset -Ag tcolour local pcol=${1:-${pcolour[${HOST:=`hostname`}]:-bold}} - local pcolr=$fg[${pcol#bold}] + local pcolr="%F{${${pcol#bold}:-default}}" [[ $pcol = bold* ]] && pcolr=%B$pcolr - + local tcol=${2:-${tcolour[$HOST]}} - local tcolr="fg=${tcol#bold}" + local tcolr="fg=${${tcol#bold}:-default}" [[ $tcol = bold* ]] && tcolr=bold,$tcolr - + local a host="%m:" user="%n " [[ $HOST == (${(j(|))~normal_hosts}) ]] && host="" [[ $LOGNAME == (root|${(j(|))~normal_users}) ]] && user="" - PS1="%{$pcolr%}$user$host%~%"'$((COLUMNS-12))'"(l.$prompt_newline. )[%h%1(j.%%%j.)%0(?..:%?)]%# %{$reset_color%}" RPS2='<%^' + PS1="$pcolr$user$host%~%"'$((COLUMNS-12))'"(l.$prompt_newline. )[%h%1(j.%%%j.)%0(?..:%?)]%# %b%f%k" RPS2='<%^' PS2='' zle_highlight[(r)default:*]=default:$tcolr } |