From 8acc9b391b3a2c8cd9e6aa10511082091496d904 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 8 Aug 2024 09:37:12 +0300 Subject: [PATCH] {bash,zsh}rc: send unalias to /dev/null Apparently while Fedora does magick the aliases up from somewhere, Kali will complain about no such hassh table element --- rc/bashrc | 4 ++-- rc/zshrc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index 4517132d..93d55b3b 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -927,7 +927,7 @@ adduser-to-group() { } # Lazyish ACL aware ls -unalias ls +unalias ls > /dev/null 2>&1 ls() { env ls --all --color=auto --human-readable "$@" if hash getfacl 2> /dev/null; then @@ -937,7 +937,7 @@ ls() { fi fi } -unalias ll +unalias ll > /dev/null 2>&1 ll() { env ls -l --all --color=auto --human-readable "$@" if hash getfacl 2> /dev/null; then diff --git a/rc/zshrc b/rc/zshrc index 5fed00a1..9a205496 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -913,7 +913,7 @@ adduser-to-group() { } # Lazyish ACL aware ls -unalias ls +unalias ls > /dev/null 2>&1 ls() { env ls --all --color=auto --human-readable "$@" if hash getfacl 2> /dev/null; then @@ -923,7 +923,7 @@ ls() { fi fi } -unalias ll +unalias ll > /dev/null 2>&1 ll() { env ls -l --all --color=auto --human-readable "$@" if hash getfacl 2> /dev/null; then