diff --git a/.bashrc b/.bashrc index 0007ff8..4da7a5f 100644 --- a/.bashrc +++ b/.bashrc @@ -35,7 +35,7 @@ function db.warmup() { pt-find --charset=utf8 --print -h $1 | xargs -t -P8 -I% -n1 sh -c "echo 'SELECT COUNT(*) FROM %;' | mysql -h $1 > /dev/null" } # -if [ -x /usr/bin/nvim ]; then +if [[ -x /usr/bin/nvim || -x /usr/local/bin/nvim ]]; then alias vim="nvim" export EDITOR="nvim" else diff --git a/.zshrc b/.zshrc index 0abb3da..5a6e08c 100644 --- a/.zshrc +++ b/.zshrc @@ -118,7 +118,7 @@ else alias "ls=/bin/ls -aF" fi # -if [[ -x /usr/bin/nvim ]]; then +if [[ -x /usr/bin/nvim || -x /usr/local/bin/nvim ]]; then alias "vim=nvim" export EDITOR="nvim" else