summaryrefslogtreecommitdiff
path: root/.zsh_functions
diff options
context:
space:
mode:
authorHendrik Jaeger <jaeger@gyselroth.com>2014-11-24 17:00:31 +0100
committerHendrik Jaeger <jaeger@gyselroth.com>2014-11-24 17:00:31 +0100
commitf0a1f3fe2ed28ed216847f32c8a89139cdec2e26 (patch)
tree1afcdf7efc39bc827b581e657d105919647ade6e /.zsh_functions
parent44934b91a195f654e812a27282f1c173bc472025 (diff)
Changed prompt
modified: .zsh_functions
Diffstat (limited to '.zsh_functions')
-rw-r--r--.zsh_functions9
1 files changed, 2 insertions, 7 deletions
diff --git a/.zsh_functions b/.zsh_functions
index 1d7cc9a..453f122 100644
--- a/.zsh_functions
+++ b/.zsh_functions
@@ -39,13 +39,8 @@ precmd () {
esac
vcs_info
- if [[ -n ${vcs_info_msg_0_} ]]; then
- local HENKSPROMPT="%(0?..%F{red}E%?%f )%(1j.%F{yellow}J%j%f .)%(3L.%F{yellow}L%L%f .)%3~ %F{green}$VCSH_REPO_NAME%f%F{yellow}${vcs_info_msg_0_}%f%# "
- PS1="$HENKSPROMPTHEADER$HENKSPROMPT"
- else
- local HENKSPROMPT="%(0?..%F{red}E%?%f )%(1j.%F{yellow}J%j%f .)%(3L.%F{yellow}L%L%f .)%3~ %F{green}$VCSH_REPO_NAME%f%# "
- PS1="$HENKSPROMPTHEADER$HENKSPROMPT"
- fi
+
+ PS1="${HENKSPROMPTHEADER}%(0?..%F{red}E%?%f )%(1j.%F{yellow}J%j%f .)%(3L.%F{yellow}L%L%f .)%3~ %F{green}$VCSH_REPO_NAME%f%F{yellow}${vcs_info_msg_0_}%f%# "
}
function vifind () {