From 6d4d9bde73dbb649d72bf52a65cd0c0079c8b752 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Tue, 16 Oct 2012 22:30:41 +1300 Subject: [PATCH] Force color for ls -l on OS X --- lib/git/shell_shortcuts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/shell_shortcuts.sh b/lib/git/shell_shortcuts.sh index 3d560ef..1b34654 100644 --- a/lib/git/shell_shortcuts.sh +++ b/lib/git/shell_shortcuts.sh @@ -82,7 +82,7 @@ if [ "$_uname" = "Linux" ]; then _abs_path_command="readlink -f" elif [ "$_uname" = "Darwin" ]; then # OS X ls commands - _ll_command="ls -l -G" + _ll_command="CLICOLOR_FORCE=1 ls -l -G" _ll_sys_command="ls" # Use perl abs_path, since readlink -f isn't available on OS X _abs_path_command="perl -e 'use Cwd \"abs_path\"; print abs_path(shift)'"