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