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

2
.zshrc
View File

@@ -109,7 +109,7 @@ else
alias "ls=/bin/ls -aF"
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