diff --git a/.config/aliasrc b/.config/aliasrc index 468483a..39ac509 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -1,7 +1,7 @@ #!/bin/sh # Use neovim for vim if present. -command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" +[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d" # Verbosity and settings that you pretty much just always are going to want. alias \