macOS compatibility

This commit is contained in:
2022-05-03 19:33:44 +02:00
parent d3bbba3804
commit df4ba4010d
2 changed files with 3 additions and 2 deletions

1
zsh/.zlogin Normal file
View File

@@ -0,0 +1 @@
[[ "$(uname)" == 'Darwin' ]] && export PATH="/opt/homebrew/bin:$PATH"

View File

@@ -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