dotfiles/zsh/prompt

16 lines
322 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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