aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/ll.sh
blob: c8c95d3b62157b49bc8eba2372bb1575e33dd6bf (plain) (blame)
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/ls/almost-all ] ; then
        set -- -Al "$@"
    else
        set -- -al "$@"
    fi
    ls "$@"
}