diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-10 14:32:13 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-10 14:32:13 +1200 |
commit | 4fb0583b4c0c761d0a4c1973116c97ab0ec636cd (patch) | |
tree | e60f245feee5344bc5df0f0787bd722cfcb03b95 /bash/bashrc.d/ls.bash | |
parent | Use _ to prevent polluting namespace (diff) | |
download | dotfiles-4fb0583b4c0c761d0a4c1973116c97ab0ec636cd.tar.gz dotfiles-4fb0583b4c0c761d0a4c1973116c97ab0ec636cd.zip |
Some more array syntax fixes
Diffstat (limited to 'bash/bashrc.d/ls.bash')
-rw-r--r-- | bash/bashrc.d/ls.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash index 5756d728..539af506 100644 --- a/bash/bashrc.d/ls.bash +++ b/bash/bashrc.d/ls.bash @@ -11,7 +11,7 @@ lsopts() { # at least eight colors, add --color=auto to the options local colors=$(tput colors) if [[ $lshelp == *--color* ]] && ((colors >= 8)); then - lsopts[${#lsopts[@]}]='--color=auto' + lsopts=("${lsopts[@]}" '--color=auto') fi # Print the options as a single string, space-delimited |