Skip to content

Commit

Permalink
fix(list-directory): fix aliases for la, ll, lla, and lsp (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccaffery authored Apr 22, 2018
1 parent 79b5025 commit 8b8a173
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/scripts/list-directory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ if [ ! -z "${AM_PROMPT_DEBUG:-}" ]; then
echo 'list-directory'
fi

if [ ! type "la" 1>/dev/null 2>&1 ]; then
if ! type "la" 1>/dev/null 2>&1; then
la() {
ls -la $@
}
fi

if [ ! type "ll" 1>/dev/null 2>&1 ]; then
if ! type "ll" 1>/dev/null 2>&1; then
ll() {
ls -lh $@
}
fi

if [ ! type "lla" 1>/dev/null 2>&1 ]; then
if ! type "lla" 1>/dev/null 2>&1; then
lla() {
ls -lha $@
}
fi

if [ ! type "lp" 1>/dev/null 2>&1 ]; then
lp() {
if ! type "lsp" 1>/dev/null 2>&1; then
lsp() {
ls -p $@
}
fi

0 comments on commit 8b8a173

Please sign in to comment.