From 5b37bf8efb9a6db844c2be2ba642239ae72aabbd Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 8 Apr 2015 15:17:26 +0200 Subject: Update prompt VC info --- zsh/.zshrc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index 6260c7b..66442a1 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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 -- cgit v1.2.3-54-g00ecf