aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-03-29 17:17:40 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-03-29 17:17:40 +1300
commit607527f2d20e40dea83a1fc6ead4ad37467c0f4c (patch)
tree443542331aa694ebd4bdbdfb80c96d3b8260a2da /sh
parentRemove unneeded leading pipe from b:undo_ftplugin (diff)
downloaddotfiles-607527f2d20e40dea83a1fc6ead4ad37467c0f4c.tar.gz
dotfiles-607527f2d20e40dea83a1fc6ead4ad37467c0f4c.zip
Fix up a few cosmetic shell anti-patterns
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc.d/ls.sh2
1 files changed, 1 insertions, 1 deletions
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