diff options
author | Tom Willemse | 2015-04-08 15:17:26 +0200 |
---|---|---|
committer | Tom Willemse | 2015-04-08 15:17:26 +0200 |
commit | 5b37bf8efb9a6db844c2be2ba642239ae72aabbd (patch) | |
tree | 9b0cf94e245970667bec72af5e29a5b381e5f7c9 /zsh/.zshrc | |
parent | 677f124c9498c7295e72c70b3be45123a406942f (diff) | |
download | dotfiles-5b37bf8efb9a6db844c2be2ba642239ae72aabbd.tar.gz dotfiles-5b37bf8efb9a6db844c2be2ba642239ae72aabbd.zip |
Update prompt VC info
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r-- | zsh/.zshrc | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -54,18 +54,19 @@ typeset -ga chpwd_functions add-zsh-hook precmd vcs_info -zstyle ':vcs_info:*' actionformats '%u%c %B%F{1}%a%f%%b (%F{3}%s%f) %F{5}%r%f:%F{4}%b%f %F{2}%S%f' +zstyle ':vcs_info:*' actionformats '%u%c%B%F{1}%a%f%%b %F{3}%s%f:%F{5}%r%f:%F{4}%b%f' zstyle ':vcs_info:*' enable bzr git hg svn -zstyle ':vcs_info:*' formats '%u%c (%F{3}%s%f) %F{5}%r%f:%F{4}%b%f %F{2}%S%f' -zstyle ':vcs_info:*' nvcsformats '%F{2}%~%f' +zstyle ':vcs_info:*' formats '%u%c%F{3}%s%f:%F{5}%r%f:%F{4}%b%f' +zstyle ':vcs_info:*' nvcsformats '' zstyle ':vcs_info:bzr:*' branchformat '%b' zstyle ':vcs_info:git:*' check-for-changes 1 zstyle ':vcs_info:*' stagedstr '%F{2}Δ%f' zstyle ':vcs_info:*' unstagedstr '%F{1}Δ%f' # Set the prompt. -PROMPT='${vcs_info_msg_0_} -%B%(?.%F{2}.%F{1})→%b ' +PROMPT='%T %2~ %B%(?.%F{2}.%F{1})→%b ' + +RPROMPT='${vcs_info_msg_0_}' # Set terminal name to current running application case $TERM in |