minor cleanup

This commit is contained in:
Sindre Sorhus
2013-09-06 15:54:33 +02:00
parent 3b767bef01
commit 615aef761c

View File

@@ -25,12 +25,12 @@
add-zsh-hook precmd pure_precmd
add-zsh-hook preexec pure_preexec
zstyle ':vcs_info:*' enable git # You can add hg too if needed: `git hg`
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:git*' formats ' %b'
zstyle ':vcs_info:git*' actionformats ' %b|%a'
# enable prompt substitution
setopt PROMPT_SUBST
setopt prompt_subst
# show username@host if logged in through SSH
if [[ -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
@@ -67,6 +67,4 @@
# prompt turns red if the previous command didn't exit with 0
PROMPT='%(?.%F{magenta}.%F{red})%f '
# can be disabled:
# PROMPT='%F{magenta}%f '
}