Skip to content

Commit

Permalink
modify git branch function because colrm isn't available on cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
hurtstotouchfire committed Feb 1, 2014
1 parent cf2fe29 commit ed15968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ed15968

Please sign in to comment.