From 62e555f90647d43057b295277ecf10124ef08e14 Mon Sep 17 00:00:00 2001 From: anntnzrb <51257127+anntnzrb@users.noreply.github.com> Date: Tue, 4 Aug 2020 09:14:03 -0500 Subject: [PATCH] Prevent user-defined aliases/commands checking (#785) #748 There's no stdout/stderr on this condition. --- .config/aliasrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \