3 ms·
zsh does a much better job (with its right prompts and formatting) http://img194.imageshack.us/img194/2101/zsh1.png http://img194.imageshack.us/img194/2101/zsh1
by sandGorgon 17y ago
zsh does a much better job (with its right prompts and formatting)
http://img194.imageshack.us/img194/2101/zsh1.png http://img194.imageshack.us/img194/2101/zsh1.png - this actually shows a git repository imported from svn
http://img40.imageshack.us/img40/3738/zsh2.png http://img40.imageshack.us/img40/3738/zsh2.png - this shows a regular svn repo
This is what you need in your zshrc
# precmd is called just before the prompt is printed
function precmd() {
title “zsh” “$USER@%m” “%55<…<%~”
psvar=()
vcs_info
[[ -n $vcs_info_msg_0_ ]] && psvar[1]=”$vcs_info_msg_0_”
}
vcs_info
export RPS1=”${YELLOW}%1v${NORM}”