From 25e875921169aa9ede3ba90c1c8b5e4cb88ec505 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Tue, 21 Aug 2012 14:26:14 +1200 Subject: [PATCH] git branch --color=always works fine - no need for script --- lib/git/branch_shortcuts.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/git/branch_shortcuts.sh b/lib/git/branch_shortcuts.sh index 7a52531..ac3cdcc 100644 --- a/lib/git/branch_shortcuts.sh +++ b/lib/git/branch_shortcuts.sh @@ -20,20 +20,9 @@ function _scmb_git_branch_shortcuts { return 1 fi - local git_branch_command="$_git_cmd branch --color=always \\\"$@\\\"" - - if [ "$_uname" = "Linux" ]; then - # Linux - local script_git_branch_command="script -q -c \"$git_branch_command\" /dev/null" - elif [ "$_uname" = "Darwin" ]; then - # OS X - local script_git_branch_command="script -q /dev/null \"$git_branch_command\"" - fi - - # Use ruby to inject numbers into ls output ruby -e "$( cat < 9 && i < 9 ? " " : " ")