From 8d6f0d3c4cea2f41217bb73f39867826b8a4253f Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 19 May 2019 13:06:31 +0200 Subject: zshrc: improved git status --- zshrc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/zshrc b/zshrc index 81aab26..1f168d4 100644 --- a/zshrc +++ b/zshrc @@ -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]" -- cgit v1.2.3