From e7fa7a5a4b243d2b52f97ec42e11713e32c2fd3e Mon Sep 17 00:00:00 2001 From: Christian Stadelmann Date: Sat, 3 May 2025 20:34:29 +0000 Subject: [PATCH] keep skiping aliasing for non-interactive shells --- coreutils-colorls.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coreutils-colorls.sh b/coreutils-colorls.sh index 25e9f4e..31c393f 100755 --- a/coreutils-colorls.sh +++ b/coreutils-colorls.sh @@ -1,3 +1,6 @@ +# Skip all for noninteractive shells. +[ ! -t 0 ] && return + # Color ls by default alias ll='ls -l --color=auto' 2>/dev/null alias l.='ls -d .* --color=auto' 2>/dev/null