diff options
-rw-r--r-- | bash/bashrc.d/ls.bash | 5 | ||||
-rw-r--r-- | sh/profile.d/ls.sh | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash index 2bbfa6d9..51a80d97 100644 --- a/bash/bashrc.d/ls.bash +++ b/bash/bashrc.d/ls.bash @@ -24,8 +24,3 @@ alias ls="ls $(lsopts)" # Unset helper function unset -f lsopts -# Define and store appropriate colors for ls -if hash dircolors 2>/dev/null; then - eval "$(dircolors --sh)" -fi - diff --git a/sh/profile.d/ls.sh b/sh/profile.d/ls.sh new file mode 100644 index 00000000..c00d815d --- /dev/null +++ b/sh/profile.d/ls.sh @@ -0,0 +1,5 @@ +# Define and store appropriate colors for ls +if command -v dircolors >/dev/null 2>&1; then + eval "$(dircolors --sh)" +fi + |