From 537ab3283b2ca3a3748fd8adf1e8c39bb76e1533 Mon Sep 17 00:00:00 2001 From: Travis Swicegood Date: Fri, 25 Mar 2016 15:54:07 -0500 Subject: [PATCH] Strip out the remotes/ prefix of the branch name --- themes/base.theme.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index 2f1bf4b3..6aadae74 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -159,6 +159,7 @@ function git_prompt_vars { [[ "${tracking_info}" =~ .+\[gone\]$ ]] && local branch_gone="true" tracking_info=${tracking_info#\#\# ${SCM_BRANCH}...} tracking_info=${tracking_info% [*} + tracking_info=${tracking_info#remotes/} local remote_name=${tracking_info%%/*} local remote_branch=${tracking_info#${remote_name}/} local remote_info=""