diff options
Diffstat (limited to 'sh/shrc.d/ll.sh')
-rw-r--r-- | sh/shrc.d/ll.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sh/shrc.d/ll.sh b/sh/shrc.d/ll.sh new file mode 100644 index 00000000..c8c95d3b --- /dev/null +++ b/sh/shrc.d/ll.sh @@ -0,0 +1,10 @@ +# Run ls -Al if we can (-A is not POSIX), ls -al otherwise +ll() { + # Prefer -A/--almost-all (exclude "." and "..") if available + if [ -e "$HOME"/.cache/ls/almost-all ] ; then + set -- -Al "$@" + else + set -- -al "$@" + fi + ls "$@" +} |