From 8b8a17386c3facfc17c2ed0feffaec40ccaebec9 Mon Sep 17 00:00:00 2001 From: "Deavon M. McCaffery" Date: Sat, 21 Apr 2018 23:42:10 -0700 Subject: [PATCH] fix(list-directory): fix aliases for la, ll, lla, and lsp (#14) --- src/scripts/list-directory.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/scripts/list-directory.sh b/src/scripts/list-directory.sh index 89fe1e8..2b83daa 100644 --- a/src/scripts/list-directory.sh +++ b/src/scripts/list-directory.sh @@ -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 \ No newline at end of file