=== removed file 'zsh-functions/prompt_ccx_setup' --- zsh-functions/prompt_ccx_setup 2013-05-31 17:18:00 +0000 +++ zsh-functions/prompt_ccx_setup 1970-01-01 00:00:00 +0000 @@ -1,50 +0,0 @@ -setopt PROMPT_SUBST - -# vi mode indicaton -typeset -A psvmodetext - -if [[ ${LC_ALL:-${LC_MESSAGES:-$LANG}} == *.UTF-8 ]]; then - if (($UID)); then - PROMPT_CHAR='▷' - else - PROMPT_CHAR='▶' - fi -else - if (($UID)); then - PROMPT_CHAR='%' - else - PROMPT_CHAR='#' - fi -fi - -prompt_base='${prompt_color_user}%n${prompt_color_host}@%m%k ${prompt_color_dir}${psvar[1]}%1~' -PS1="%(?..\${prompt_color_errno}<%?>)%(1j.\${prompt_color_jobs}{%j}.)$prompt_base ${PROMPT_CHAR}%b%f%k " -PS2="$prompt_base %_> %b%f%k" -PS3="$prompt_base ?# %b%f%k" -RPROMPT='${vcs_info_msg_0_}${vcs_info_msg_home}' -if [[ $terminfo[colors] == 256 ]]; then - autoload string_hash_color - prompt_color_host="%b%F{$(string_hash_color $HOST)}" - prompt_color_dir="%b%F{cyan}" - prompt_color_errno="%b%F{214}" - prompt_color_dir="%b%F{214}" -else - prompt_color_host="%b%F{green}" - prompt_color_dir="%b%F{cyan}" - prompt_color_errno="%B%F{yellow}" - prompt_color_dir="%B%F{yellow}" -fi -prompt_color_user=$prompt_color_host -if [[ $UID -eq 0 ]]; then - prompt_color_dir="%B%F{red}" -fi - -# colorful vi mode indication, powerline-style -if [[ $terminfo[colors] -ge 8 ]] && ! (($+MAILZ)); then - psvmodetext[i]='' - psvmodetext[c]='%K{green}%F{black}' - psvmodetext[r]='%K{red}%F{black}' - psvmodetext[im]="${psvmodetext[i]}[m] " - psvmodetext[cm]="${psvmodetext[c]}[m] " -fi -