modularized zshrc

This commit is contained in:
Loic Nageleisen 2012-08-10 14:39:37 +02:00
parent cf509c03fc
commit d1bec20d74
9 changed files with 147 additions and 125 deletions

16
zsh/prompt Normal file
View file

@ -0,0 +1,16 @@
source $DOTFILES_ZSH_DIR/prompt_vcs
set_rprompt() {
vcs_info
if [[ -n $vcs_info_msg_0_ ]]; then
RPROMPT="$vcs_info_msg_0_"
else
RPROMPT="%F{green}%~%f"
fi
RPROMPT="%(?..%B[%?]%b ) $RPROMPT"
}
PROMPT="%(?.%F{blue}.%F{red}?)%f%n@%m%F{blue}>%f "
prompt_opts=(cr percent)
# vim: ft=zsh