From 070c6756a8b3d23ea7595c7d105598233a38e942 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Mon, 2 Apr 2012 11:25:22 -0400 Subject: [PATCH] [#83] Always evaluate dircolors if installed --- alias.zsh | 4 +++- plugins/gnu-utils/init.zsh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/alias.zsh b/alias.zsh index ccef5275..b88ae54d 100644 --- a/alias.zsh +++ b/alias.zsh @@ -14,7 +14,9 @@ if (( $+commands[dircolors] )); then if zstyle -t ':omz:alias:ls' color; then if [[ -f "$HOME/.dir_colors" ]]; then - eval $(dircolors "$HOME/.dir_colors") + eval "$(dircolors "$HOME/.dir_colors")" + else + eval "$(dircolors)" fi alias ls="$aliases[ls] --color=auto" else diff --git a/plugins/gnu-utils/init.zsh b/plugins/gnu-utils/init.zsh index 0e67750e..aa17a4d7 100644 --- a/plugins/gnu-utils/init.zsh +++ b/plugins/gnu-utils/init.zsh @@ -82,7 +82,9 @@ alias ls='ls --group-directories-first' if zstyle -t ':omz:alias:ls' color; then if [[ -f "$HOME/.dir_colors" ]]; then - eval $(gdircolors "$HOME/.dir_colors") + eval "$(gdircolors "$HOME/.dir_colors")" + else + eval "$(gdircolors)" fi alias ls="$aliases[ls] --color=auto" else