From ed15968725ce7a13d2728bec4e3387354b6f971f Mon Sep 17 00:00:00 2001 From: Kelly Buchanan Date: Sat, 1 Feb 2014 02:39:06 -0500 Subject: [PATCH] modify git branch function because colrm isn't available on cygwin --- bash_prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_prompt.sh b/bash_prompt.sh index 13475ff..3bd159d 100755 --- a/bash_prompt.sh +++ b/bash_prompt.sh @@ -46,7 +46,7 @@ NONE="\[\e[0m\]" # set up git prompt components function parse_git_branch { - git branch 2>/dev/null | grep '^*' | colrm 1 2 | sed 's_\(.*\)_(\1)_' + git branch 2>/dev/null | grep '^*' | sed 's_^..__' | sed 's_\(.*\)_(\1)_' } function git_dirty {