Add homebrew's nvim to search for.

This commit is contained in:
Gea-Suan Lin
2023-12-28 11:48:19 +08:00
parent c0401fc926
commit 50ee9da3b1
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ else
alias "t=telnet" alias "t=telnet"
fi fi
# #
if [[ -x /usr/bin/nvim || -x /usr/local/bin/nvim ]]; then if [[ -x /opt/homebrew/bin/nvim || -x /usr/bin/nvim || -x /usr/local/bin/nvim ]]; then
alias vim="nvim" alias vim="nvim"
export EDITOR="nvim" export EDITOR="nvim"
else else

2
.zshrc
View File

@@ -109,7 +109,7 @@ else
alias "ls=/bin/ls -aF" alias "ls=/bin/ls -aF"
fi fi
# #
if [[ -x /usr/bin/nvim || -x /usr/local/bin/nvim ]]; then if [[ -x /opt/homebrew/bin/nvim || -x /usr/bin/nvim || -x /usr/local/bin/nvim ]]; then
alias "vim=nvim" alias "vim=nvim"
export EDITOR="nvim" export EDITOR="nvim"
else else