From 9edaa157dd2d2301f8ef957184ca5384351624d7 Mon Sep 17 00:00:00 2001 From: Amand Tihon Date: Tue, 13 Nov 2018 18:03:42 +0100 Subject: [PATCH] Truncate git branch name in prompt --- S90_prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" -- 2.39.2