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.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash
index 0fd246fe..cd23bbe9 100644
--- a/bash/bashrc.d/ls.bash
+++ b/bash/bashrc.d/ls.bash
@@ -8,7 +8,7 @@ colors=$( {
# function wrapper to do this
declare -a LSOPTS
if [[ -n $LS_COLORS ]] && ((colors >= 8)) ; then
- LSOPTS=("${LSOPTS[@]}" --color=auto)
+ LSOPTS[${#LSOPTS[@]}]='--color=auto'
fi
# Done, unset helper var