Permalink
Browse files

Expand args for ls_with_file_shortcuts - crazy useful! Lets you easil…

…y jump into child directories
  • Loading branch information...
1 parent 6607aec commit 179d78f4ee59267c1475ec4765fd9653e358376c @ndbroadbent ndbroadbent committed Oct 19, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 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"

0 comments on commit 179d78f

Please sign in to comment.