From 33b42e7398be8ca9801a499c4d5d9348f7e2b082 Mon Sep 17 00:00:00 2001 From: Joseph Irwin Date: Mon, 2 Apr 2012 20:37:48 +0900 Subject: [PATCH] Run 'dircolors' without '~/.dir_colors' if absent Add an else condition to run $(dircolors) if the '~/.dir_colors' file does not exist; this allows the use of default colors when the user has not made any customizations. --- alias.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/alias.zsh b/alias.zsh index ccef5275..920ec3ee 100644 --- a/alias.zsh +++ b/alias.zsh @@ -15,6 +15,8 @@ if (( $+commands[dircolors] )); then if zstyle -t ':omz:alias:ls' color; then if [[ -f "$HOME/.dir_colors" ]]; then eval $(dircolors "$HOME/.dir_colors") + else + eval $(dircolors) fi alias ls="$aliases[ls] --color=auto" else