X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=config%2Fzsh%2F60_prompt;h=86dd59637559a411331377d5ab79c7e060792940;hb=1f66b92bd417b2e96d9b819a9ca256cfb4e8fe98;hp=70f9c98bcd8289752911503f139ed2450bb5fdb8;hpb=5923f706617b966f114656c78bd60108d4ab1dde;p=~madcoder%2Fdotfiles.git diff --git a/config/zsh/60_prompt b/config/zsh/60_prompt index 70f9c98..86dd596 100644 --- a/config/zsh/60_prompt +++ b/config/zsh/60_prompt @@ -56,23 +56,13 @@ $pcc[1]└[$pcc[2]%{%(?..%S)%}%m%s$pcc[1]] $rst" } if [ $UID -eq 0 ]; then - PATH=~root/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH PROMPT="%{$reset_color$fg_bold[yellow]%}[%{$fg_bold[red]%}%n %m%{$fg_bold[yellow]%}]%{$reset_color%} " RPROMPT="%{$reset_color$fg_no_bold[red]%}(%{$fg_bold[red]%}%~%{$fg_no_bold[red]%})%{$reset_color%} " else - PATH="/usr/lib/ccache:${HOME}/bin:${PATH}" _mad_prompt_setup fi case "$TERM" in - screen) - PROMPT="${PROMPT}%{kzsh\\%}" - - preexec () { - local CMD=${1[(wr)^(*=*|sudo|exec|-*)]} - echo -ne "\ek$CMD\e\\" - } - ;; xterm|rxvt-unicode) PROMPT="${PROMPT}%{]2;zsh%}"