From 179d78f4ee59267c1475ec4765fd9653e358376c Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Sat, 20 Oct 2012 09:30:30 +1300 Subject: [PATCH] Expand args for ls_with_file_shortcuts - crazy useful! Lets you easily jump into child directories --- lib/git/shell_shortcuts.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/git/shell_shortcuts.sh b/lib/git/shell_shortcuts.sh index ecec785..72bfb4b 100644 --- a/lib/git/shell_shortcuts.sh +++ b/lib/git/shell_shortcuts.sh @@ -92,7 +92,7 @@ if [ -n "$_ll_command" ]; then # Function wrapper around 'll' # 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 ll { + function ls_with_file_shortcuts { local ll_output="$($_ll_command "$@")" # Parse path from args @@ -149,5 +149,6 @@ EOF } fi -# Alias to list all files +# Setup aliases +alias ll="exec_scmb_expand_args ls_with_file_shortcuts" alias la="ll -A" \ No newline at end of file