X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=config%2Fzsh%2F60_prompt;h=241075ab605739680403374240e6630775d3d90b;hb=4e2ee5cc454ea39fcd93270a9d6dfcb9370f5406;hp=86dd59637559a411331377d5ab79c7e060792940;hpb=13cef426cc23a32b4b9dc830e9e03688f3c475a9;p=~madcoder%2Fdotfiles.git diff --git a/config/zsh/60_prompt b/config/zsh/60_prompt index 86dd596..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/}" }