From 7819cfac8c6287e8926a615171fc5f7cab05811b Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 4 Aug 2024 14:23:25 +0300 Subject: [PATCH] {bash,zsh}rc: very lazy acl aware ls --- rc/bashrc | 8 ++++++++ rc/zshrc | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/rc/bashrc b/rc/bashrc index 598e3d6f..46e36a19 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -922,6 +922,14 @@ adduser-to-group() { usermod -aG "$2" "$1" } +# Very lazy ACL aware ls +unalias ls +ls() { + env ls --all --color=auto --human-readable "$@" + getfacl --absolute-names --skip-base "$@" +} +alias ll="ls -la" + # Source files for miscannellious modifications. # acme.sh diff --git a/rc/zshrc b/rc/zshrc index 66fada15..e06a66e8 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -908,6 +908,14 @@ adduser-to-group() { usermod -aG "$2" "$1" } +# Very lazy ACL aware ls +unalias ls +ls() { + env ls --all --color=auto --human-readable "$@" + getfacl --absolute-names --skip-base "$@" +} +alias ll="ls -la" + # Source files for miscannellious modifications. # acme.sh