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/}"
}
}
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