🐛fix(env): fix fpath, fix logic

remove quotes around $fpath variable as this broke omz
fixed logic when checking for gdircolors on macOS
This commit is contained in:
2024-11-26 12:55:18 -05:00
parent b77589bd20
commit c2e7f37a03
+4 -2
View File
@@ -20,7 +20,7 @@ if [ -d "$HOME/.bin" ]; then
export PATH="$HOME/.bin:$PATH" export PATH="$HOME/.bin:$PATH"
fi fi
fpath=("$HOME/.zsh/zsh-completions/src" "$fpath") fpath=("$HOME/.zsh/zsh-completions/src" $fpath)
# Editor # Editor
export EDITOR='nvim' export EDITOR='nvim'
@@ -100,7 +100,9 @@ case $(uname -s) in
eval "$(brew shellenv)" 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) Linux)