]> git.alrj.org Git - zsh.d.git/commitdiff
Truncate git branch name in prompt
authorAmand Tihon <amand.tihon@iba-group.com>
Tue, 13 Nov 2018 17:03:42 +0000 (18:03 +0100)
committerAmand Tihon <amand.tihon@iba-group.com>
Thu, 24 Jan 2019 14:08:16 +0000 (15:08 +0100)
S90_prompt

index 8017507d5331239836200f2b2fac3a29e94bced1..380a427380863f173c438db45c4e1511b703d70f 100644 (file)
@@ -34,7 +34,7 @@ setprompt()
   # Git status in the pwd, if applicable
   if [[ -n ${__ZSH_GIT_BASEDIR} ]]; then
     _basedir="${C_GREEN}%20<..<${__ZSH_GIT_BASEDIR}%<<${C_NO}"
-    _branch="${C_MAGENTA}@${__ZSH_GIT_BRANCH}${__ZSH_GIT_ACTION}${C_NO}"
+    _branch="${C_MAGENTA}@%20>..>${__ZSH_GIT_BRANCH}%>>${__ZSH_GIT_ACTION}${C_NO}"
     _status="${__ZSH_GIT_STATUS}"
     _subdir="${C_GREEN}/%15<..<${__ZSH_GIT_SUBDIR}%<<${C_NO}"
     _path="${_basedir}${_branch}${_status}${_subdir}"