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"
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"
export EDITOR="nvim"
else