From 7c7aedce0389f2bc5b5878d00e9e5b74c7b18732 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Tue, 23 Oct 2012 10:35:16 +1300 Subject: [PATCH] Fixed ruby script to use STDIN, and pipe ll output to script --- lib/git/shell_shortcuts.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/git/shell_shortcuts.sh b/lib/git/shell_shortcuts.sh index 181d54b..f2c615b 100644 --- a/lib/git/shell_shortcuts.sh +++ b/lib/git/shell_shortcuts.sh @@ -91,12 +91,10 @@ fi # Adds numbered shortcuts to output of ls -l, just like 'git status' unalias ll > /dev/null 2>&1; unset -f ll > /dev/null 2>&1 function ls_with_file_shortcuts { - local ll_output='' - if [ -z $_ls_bsd ]; then - ll_output="$(ls -lhv --group-directories-first --color "$@")" + local ll_output="$(ls -lhv --group-directories-first --color "$@")" else - ll_output="$(CLICOLOR_FORCE=1 ls -l -G "$@")" + local ll_output="$(CLICOLOR_FORCE=1 ls -l -G "$@")" fi # Parse path from args @@ -127,8 +125,8 @@ function ls_with_file_shortcuts { fi # Use ruby to inject numbers into ls output - ruby -e "$( cat <