diff options
author | johannst <stoelp@eit.uni-kl.de> | 2019-05-19 13:06:31 +0200 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2019-05-19 13:06:31 +0200 |
commit | 8d6f0d3c4cea2f41217bb73f39867826b8a4253f (patch) | |
tree | 914ab32e34455ee1404db27de1a36fc0a53438c3 /zshrc | |
parent | 3ef4de49967cec4863385773bbbb89d8fce961a6 (diff) | |
download | dotfiles-8d6f0d3c4cea2f41217bb73f39867826b8a4253f.tar.gz dotfiles-8d6f0d3c4cea2f41217bb73f39867826b8a4253f.zip |
zshrc: improved git status
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -185,11 +185,14 @@ function _installMyPromptBase16() { c_vic='%F{16}' vimode="${${KEYMAP/vicmd/$c_vic$vinorm}/(main|viins)/$c_vii$viins}$color[noColor]" - c_git='%F{11}' - ZSH_THEME_GIT_PROMPT_PREFIX="${c_del}(${c_git}" - ZSH_THEME_GIT_PROMPT_SUFFIX="$color[noColor] " - ZSH_THEME_GIT_PROMPT_DIRTY="${c_del}) ${c_git}◆" - ZSH_THEME_GIT_PROMPT_CLEAN="${c_del})" + c_git_branch='%F{5}' + c_git_dirty='%F{9}' + c_git_ahead='%F{4}' + ZSH_THEME_GIT_PROMPT_PREFIX="${c_del}(${c_git_branch}" + ZSH_THEME_GIT_PROMPT_DIRTY="${c_del}:${c_git_dirty}Δ" + ZSH_THEME_GIT_PROMPT_CLEAN="" + ZSH_THEME_GIT_PROMPT_AHEAD="${c_del}:${c_git_ahead}↑" # + ZSH_THEME_GIT_PROMPT_SUFFIX="$(git_prompt_ahead)${c_del})$color[noColor] " PS1="$c_usr%n$c_del::$c_hos%m$c_del:$c_tty%l$color[noColor] [$vimode] $(git_prompt_info)$c_ret%(?..%? )$c_del$color[noColor]> " RPS1="%F$color[darkBlue]%~$color[noColor]" |