blob: 1ac44b8e8354b12aba533f13eb96d3ea46f5d686 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
# Run ls -A if we can (-A is not POSIX), ls -a otherwise
la() {
# Prefer --almost-all (exclude "." and "..") if available
if [ -e "$HOME"/.cache/sh/opt/ls/almost-all ] ; then
set -- -A "$@"
else
set -- -a "$@"
fi
ls "$@"
}
|