aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ls.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/ls.bash')
-rw-r--r--bash/bashrc.d/ls.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash
index 93d6a9ec..4890d1ac 100644
--- a/bash/bashrc.d/ls.bash
+++ b/bash/bashrc.d/ls.bash
@@ -5,11 +5,11 @@ __lsopts() {
local -a lsopts
# Snarf the output of `ls --help` into a variable
- local lshelp="$(ls --help 2>/dev/null)"
+ local lshelp=$(ls --help 2>/dev/null)
# If the --color option is available and we have a terminal that supports
# at least eight colors, add --color=auto to the options
- local -i colors="$(tput colors)"
+ local -i colors=$(tput colors)
if [[ $lshelp == *--color* ]] && ((colors >= 8)); then
lsopts[${#lsopts[@]}]='--color=auto'
fi