removed files
[~madcoder/dotfiles.git] / config / zsh / 60_prompt
index 70f9c98..241075a 100644 (file)
@@ -32,7 +32,7 @@ precmd() {
             branch="$(cut -c1-7 "$git_dir/HEAD")..."
     fi
 
-    psvar[1]="${$(readlink -f ${git_dir:h})/$HOME/~}"
+    psvar[1]="${$(greadlink -m "$(git rev-parse --show-cdup)./")/$HOME/~}"
     psvar[2]="${branch#refs/heads/}"
 }
 
@@ -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}%{\ekzsh\e\\%}"
-
-        preexec () {
-            local CMD=${1[(wr)^(*=*|sudo|exec|-*)]}
-            echo -ne "\ek$CMD\e\\"
-        }
-    ;;
     xterm|rxvt-unicode)
         PROMPT="${PROMPT}%{\e]2;zsh\a%}"