From 45d39ae0c67bb086f4df0c366b251e06c888408d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 30 Aug 2023 08:23:15 +0200 Subject: [aliases] also check home for dircolors --- config/essentials/zsh/aliases.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config') 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' -- cgit v1.2.3