From 607527f2d20e40dea83a1fc6ead4ad37467c0f4c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 29 Mar 2019 17:17:40 +1300 Subject: Fix up a few cosmetic shell anti-patterns --- sh/shrc.d/ls.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/shrc.d/ls.sh b/sh/shrc.d/ls.sh index 1083dfca..203a734f 100644 --- a/sh/shrc.d/ls.sh +++ b/sh/shrc.d/ls.sh @@ -28,7 +28,7 @@ ls() { fi ## Add --color if the terminal has at least 8 colors if [ -e "$HOME"/.cache/sh/opt/ls/color ] && - [ "$(exec 2>/dev/null;tput colors||tput Co||echo 0)" -ge 8 ] ; then + [ "$(exec 2>/dev/null;tput colors||tput Co||echo 0)" -ge 8 ] ; then set -- --color=auto "$@" fi ## Add --time-style='+%Y-%m-%d %H:%M:%S' to show the date in my preferred -- cgit v1.2.3