aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-25 20:57:17 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-25 20:57:17 +1200
commit5342c7c06646962e392df3a7c695bfa086be3d72 (patch)
treef290ffcabcb940a06e39d8e636dfe1fe4d265e46
parentNo need to test for stty/setterm existence (diff)
downloaddotfiles-5342c7c06646962e392df3a7c695bfa086be3d72.tar.gz
dotfiles-5342c7c06646962e392df3a7c695bfa086be3d72.zip
Use hash to test for dircolors existence
-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 6fa20da9..5ae31fea 100644
--- a/bash/bashrc.d/ls.bash
+++ b/bash/bashrc.d/ls.bash
@@ -25,7 +25,7 @@ alias ls="ls $(__lsopts)"
unset __lsopts
# Define and store appropriate colors for ls
-if command -v dircolors &>/dev/null; then
+if hash dircolors 2>/dev/null; then
eval "$(dircolors --sh)"
fi