diff options
Diffstat (limited to 'bash/bashrc.d/ls.bash')
-rw-r--r-- | bash/bashrc.d/ls.bash | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash index 24bdf4ac..03150fea 100644 --- a/bash/bashrc.d/ls.bash +++ b/bash/bashrc.d/ls.bash @@ -1,6 +1,3 @@ -# Apply color and exclusions to ls and grep -eval "$(dircolors -b &>/dev/null)" - # Function returns calculated options for ls function __lsopts { local lsopts= @@ -13,3 +10,9 @@ function __lsopts { # Alias ls with these options alias ls="ls $(__lsopts)" +# Unset helper function +unset __lsopts + +# Apply color and exclusions to ls and grep +eval "$(dircolors -b &>/dev/null)" + |