aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/ll.sh
blob: e9737c628ea23a36f3886ca147764a9cec60fac9 (plain)
1
2
3
4
5
6
7
8
9
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/sh/opt/ls/almost-all ] ; then
        set -- -Al "$@"
    else
        set -- -al "$@"
    fi
    ls "$@"
}