diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-16 18:42:07 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-16 18:42:07 +0100 |
commit | 6d6d4dd8aaf9924dbb1c161a98a9bcbba07bd3ed (patch) | |
tree | e6dfb590d61bd8d8f90ba83ca2a244c218f4236b | |
parent | 617414372ae07c45de1ea0856fa177da320df60c (diff) |
prompt: Use colors via ZLE
-rw-r--r-- | etc/colors | 7 | ||||
-rw-r--r-- | etc/prompt | 16 |
2 files changed, 8 insertions, 15 deletions
@@ -7,10 +7,3 @@ yellow=$'\e[0;33m' green=$'\e[0;32m' red=$'\e[0;31m' reset=$'\e[0m' - -ps_fail="%{$fail%}" -ps_info="%{$info%}" -ps_yellow="%{$yellow%}" -ps_green="%{$green%}" -ps_red="%{$red%}" -ps_reset="%{$reset%}" @@ -9,19 +9,19 @@ typeset -A ps rps ps=( - host "${ps_yellow}%m" - dir "${ps_reset}%30<…<%2v%>>" - sign "%(!.${ps_red}.${ps_green})%(?.%(!.#.>).%?)${ps_reset}" + host "%F{yellow}%m" + dir "%F{default}%30<…<%2v%>>" + sign "%(!.%F{red}.%F{green})%(?.%(!.#.>).%?)%F{reset}" screen $'%{\ek\e\\%}' ) rps=( - start_always "${ps_yellow}[" - start_screen "%(1V.${ps_yellow}[" - dirinfo "${ps_info}%1v${ps_reset}" + start_always "%F{yellow}[" + start_screen "%(1V.%F{yellow}[" + dirinfo "%F{cyan}%1v%F{default}" time '%T' - end_always "${ps_yellow}]${ps_reset}" - end_screen "%(1V.${ps_yellow}]${ps_reset}.)" + end_always "%F{yellow}]%F{default}" + end_screen "%(1V.%F{yellow}]%F{default}.)" ) PS1="${ps[host]} ${ps[dir]} ${ps[sign]} ${ps[screen]}" |