aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ls.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-05-30 20:52:46 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-05-30 20:52:46 +1200
commit996d86bcb959bbdf4ae82718f26d19dcfc15bf6d (patch)
treef1fdaf58989475c8f994919a74ab875d42731af5 /bash/bashrc.d/ls.bash
parentAlign multiline if conditions (diff)
downloaddotfiles-996d86bcb959bbdf4ae82718f26d19dcfc15bf6d.tar.gz
dotfiles-996d86bcb959bbdf4ae82718f26d19dcfc15bf6d.zip
Ignore tput(1) stderr
Diffstat (limited to 'bash/bashrc.d/ls.bash')
-rw-r--r--bash/bashrc.d/ls.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash
index 255d6cd3..a559a44a 100644
--- a/bash/bashrc.d/ls.bash
+++ b/bash/bashrc.d/ls.bash
@@ -9,7 +9,7 @@ lsopts() {
# If the --color option is available and we have a terminal that supports
# at least eight colors, add --color=auto to the options
- local colors=$(tput colors)
+ local colors=$(tput colors 2>/dev/null)
if [[ $lshelp == *--color* ]] && ((colors >= 8)) ; then
lsopts=("${lsopts[@]}" --color=auto)
fi