X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=config%2Fzsh%2F60_prompt;h=241075ab605739680403374240e6630775d3d90b;hb=4e2ee5cc454ea39fcd93270a9d6dfcb9370f5406;hp=c9a2bde2af689c08d132e0f741322dd0967ed0c4;hpb=417b4faa1b92ed748bbf8eb32be8b43b70f19e8f;p=~madcoder%2Fdotfiles.git diff --git a/config/zsh/60_prompt b/config/zsh/60_prompt index c9a2bde..241075a 100644 --- a/config/zsh/60_prompt +++ b/config/zsh/60_prompt @@ -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,11 +56,9 @@ $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