diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-05 11:16:38 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-05 11:16:38 +1300 |
commit | 37bf75ee2da67c32b3de99516a107a38119771eb (patch) | |
tree | 630e5fac9c4fa08e8e59a399ad89a2f619fcd491 | |
parent | Move a paragraph for clarity (diff) | |
download | dotfiles-37bf75ee2da67c32b3de99516a107a38119771eb.tar.gz dotfiles-37bf75ee2da67c32b3de99516a107a38119771eb.zip |
Move LSCOLORS export into profile
dircolors(1) exports its LS_COLORS var, so it's pointless reloading it
on every non-login shell
-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 + |