diff options
| author | anntnzrb <51257127+anntnzrb@users.noreply.github.com> | 2020-08-04 09:14:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-04 10:14:03 -0400 |
| commit | 62e555f90647d43057b295277ecf10124ef08e14 (patch) | |
| tree | 4698e31bedccd4ef84b00061c330c3e292eba8e9 /.config | |
| parent | ae185dc3b18d470c664bc80b10ae797ec42786a8 (diff) | |
| download | eibhear-62e555f90647d43057b295277ecf10124ef08e14.tar.gz eibhear-62e555f90647d43057b295277ecf10124ef08e14.tar.zst eibhear-62e555f90647d43057b295277ecf10124ef08e14.zip | |
Prevent user-defined aliases/commands checking (#785)
#748
There's no stdout/stderr on this condition.
Diffstat (limited to '.config')
| -rw-r--r-- | .config/aliasrc | 2 |
1 files changed, 1 insertions, 1 deletions
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 \ |
