From c2e7f37a0363a8dd618ca45ff04710ece087118d Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Tue, 26 Nov 2024 12:55:18 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Bfix(env):=20fix=20fpath,=20fix=20lo?= =?UTF-8?q?gic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remove quotes around $fpath variable as this broke omz fixed logic when checking for gdircolors on macOS --- .zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 37cb97e..82ee0d2 100644 --- a/.zshrc +++ b/.zshrc @@ -20,7 +20,7 @@ if [ -d "$HOME/.bin" ]; then export PATH="$HOME/.bin:$PATH" fi -fpath=("$HOME/.zsh/zsh-completions/src" "$fpath") +fpath=("$HOME/.zsh/zsh-completions/src" $fpath) # Editor export EDITOR='nvim' @@ -100,7 +100,9 @@ case $(uname -s) in eval "$(brew shellenv)" - [[ ! -f "$(which gdircolors)" ]] || test -f "$HOME/.dircolors" && eval "$(gdircolors "$HOME/.dircolors")" || eval "$(gdircolors)" + if command -v gdircolors >/dev/null 2>&1; then + test -f "$HOME/.dircolors" && eval "$(gdircolors "$HOME/.dircolors")" || eval "$(gdircolors)" + fi ;; Linux)