]> git.alrj.org Git - zsh.d.git/blobdiff - S90_prompt
Truncate git branch name in prompt
[zsh.d.git] / 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}"