mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
{bash,zsh}rc: give ll the same lazy ls behaviour
This commit is contained in:
parent
d76df5c1c9
commit
a44431d12c
11
rc/bashrc
11
rc/bashrc
@ -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.
|
||||
|
||||
|
11
rc/zshrc
11
rc/zshrc
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user