From: Amand Tihon Date: Tue, 13 Nov 2018 17:03:42 +0000 (+0100) Subject: Truncate git branch name in prompt X-Git-Url: https://git.alrj.org/?a=commitdiff_plain;h=9edaa157dd2d2301f8ef957184ca5384351624d7;p=zsh.d.git Truncate git branch name in prompt --- diff --git a/S90_prompt b/S90_prompt index 8017507..380a427 100644 --- a/S90_prompt +++ b/S90_prompt @@ -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}"