summaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-04-08 15:17:26 +0200
committerGravatar Tom Willemse2015-04-08 15:17:26 +0200
commit5b37bf8efb9a6db844c2be2ba642239ae72aabbd (patch)
tree9b0cf94e245970667bec72af5e29a5b381e5f7c9 /zsh
parent677f124c9498c7295e72c70b3be45123a406942f (diff)
downloaddotfiles-5b37bf8efb9a6db844c2be2ba642239ae72aabbd.tar.gz
dotfiles-5b37bf8efb9a6db844c2be2ba642239ae72aabbd.zip
Update prompt VC info
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc11
1 files changed, 6 insertions, 5 deletions
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