Expand args for ls_with_file_shortcuts - crazy useful! Lets you easily jump into child directories

This commit is contained in:
Nathan Broadbent
2012-10-20 09:30:30 +13:00
parent 6607aec257
commit 179d78f4ee

View File

@@ -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"