diff options
Diffstat (limited to 'config/ksh/functions')
-rw-r--r-- | config/ksh/functions/l. | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config/ksh/functions/l. b/config/ksh/functions/l. index 8beac4e..e4a759e 100644 --- a/config/ksh/functions/l. +++ b/config/ksh/functions/l. @@ -1,8 +1,10 @@ #!/bin/ksh -l.() { +function l. { if [[ -n "$1" ]]; then - exa -Fbd "$1"/.* + ( cd "$1" 2>/dev/null ||\ + { echo "$0: $1 - No such directory" >&2 ; exit; } + ls -d .* ) else - exa -Fbd .* + ls -d .* fi } |