diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-03-29 17:17:40 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-03-29 17:17:40 +1300 |
commit | 607527f2d20e40dea83a1fc6ead4ad37467c0f4c (patch) | |
tree | 443542331aa694ebd4bdbdfb80c96d3b8260a2da /sh | |
parent | Remove unneeded leading pipe from b:undo_ftplugin (diff) | |
download | dotfiles-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.sh | 2 |
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 |