diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-18 14:35:16 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-18 14:35:16 +1200 |
commit | 4f9541f1f5e193e252a890062cd01970f2204619 (patch) | |
tree | df091379910710735c2f8db961ecbcc28cd3dd25 /sh/shrc.d/vim.sh | |
parent | Update submodules (diff) | |
download | dotfiles-4f9541f1f5e193e252a890062cd01970f2204619.tar.gz dotfiles-4f9541f1f5e193e252a890062cd01970f2204619.zip |
Suppress stderr from command -v checks
Now I remember--old Bash prints failure messages to stderr for this
call. That'll be why I was suppressing both streams initially.
Diffstat (limited to 'sh/shrc.d/vim.sh')
-rw-r--r-- | sh/shrc.d/vim.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/shrc.d/vim.sh b/sh/shrc.d/vim.sh index fc04c99f..e9174082 100644 --- a/sh/shrc.d/vim.sh +++ b/sh/shrc.d/vim.sh @@ -1,5 +1,5 @@ # If Vim exists on the system, use it instead of ex, vi, and view -command -v vim >/dev/null || return +command -v vim >/dev/null 2>&1 || return # Define functions proper ex() { |