diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-30 08:23:15 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-30 08:23:15 +0200 |
commit | 45d39ae0c67bb086f4df0c366b251e06c888408d (patch) | |
tree | 45de4c46b06320e2156ca2917ccd1609eb342ecf | |
parent | 9b791ac8786eed2d242d0909dd2379f008952042 (diff) |
[aliases] also check home for dircolors
-rw-r--r-- | config/essentials/zsh/aliases.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index 0c7c1ac..6df28e3 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -50,7 +50,8 @@ alias pf='profanity' alias arduino-cli='arduino-cli --config-file $XDG_CONFIG_HOME/arduino15/arduino-cli.yaml' -if [ -x /usr/bin/dircolors ]; then +if [ -x /usr/bin/dircolors ] || [ -x $HOME/../usr/bin/dircolors ] +then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" # alias ls='ls -h --color --group-directories-first' #alias dir='dir --color=auto' |