From a44431d12cd602317950ba46ae951f4c83624ed1 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 4 Aug 2024 14:41:18 +0300 Subject: [PATCH] {bash,zsh}rc: give ll the same lazy ls behaviour --- rc/bashrc | 11 ++++++++++- rc/zshrc | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index 49bc17c8..d4af8614 100755 --- a/rc/bashrc +++ b/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. diff --git a/rc/zshrc b/rc/zshrc index 6913f285..0de48111 100755 --- a/rc/zshrc +++ b/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.