From df4ba4010dba970bc50b1e18f61936153679a087 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 3 May 2022 19:33:44 +0200 Subject: [PATCH] macOS compatibility --- zsh/.zlogin | 1 + zsh/.zshenv | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 zsh/.zlogin diff --git a/zsh/.zlogin b/zsh/.zlogin new file mode 100644 index 0000000..6f32dba --- /dev/null +++ b/zsh/.zlogin @@ -0,0 +1 @@ +[[ "$(uname)" == 'Darwin' ]] && export PATH="/opt/homebrew/bin:$PATH" diff --git a/zsh/.zshenv b/zsh/.zshenv index 20b9e30..78c82c8 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1,9 +1,9 @@ export GOPATH="$HOME/.go" export PATH="$HOME/.cargo/bin:$HOME/.gem/bin:$GOPATH/bin:$HOME/.dotfiles/bin:$HOME/.local/bin:$PATH" -if [[ -x /usr/bin/nvim ]]; then +if [[ -x /usr/bin/nvim ]] || [[ -x /opt/homebrew/bin/nvim ]]; then export EDITOR=nvim -elif [[ -x /usr/bin/vim ]]; then +elif [[ -x /usr/bin/vim ]] || [[ -x /opt/homebrew/bin/vim ]]; then export EDITOR=vim fi