{bash,zsh}rc: give ll the same lazy ls behaviour

This commit is contained in:
Aminda Suomalainen 2024-08-04 14:41:18 +03:00
parent d76df5c1c9
commit a44431d12c
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 20 additions and 2 deletions

View File

@ -933,7 +933,16 @@ ls() {
fi
fi
}
alias ll="ls -la"
unalias ll
ll() {
env ls -l --all --color=auto --human-readable "$@"
if hash getfacl 2> /dev/null; then
if [[ -d "$@" || -f "$@" ]]; then
printf "\n"
getfacl --absolute-names --skip-base "$@"
fi
fi
}
# Source files for miscannellious modifications.

View File

@ -919,7 +919,16 @@ ls() {
fi
fi
}
alias ll="ls -la"
unalias ll
ll() {
env ls -l --all --color=auto --human-readable "$@"
if hash getfacl 2> /dev/null; then
if [[ -d "$@" || -f "$@" ]]; then
printf "\n"
getfacl --absolute-names --skip-base "$@"
fi
fi
}
# Source files for miscannellious modifications.