From e16a4d98510f9851fc596ec7677ccebb57f2fe24 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Mon, 12 Dec 2022 23:00:17 -0500 Subject: [PATCH] Hide errors --- nvim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim.sh b/nvim.sh index 22e1e4b..fac8c42 100755 --- a/nvim.sh +++ b/nvim.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [ "`which flatpak`" ]; then +if [ -e /bin/which ] && [ "`which flatpak 2>/dev/null`" ]; then flatpak run io.neovim.nvim $@ 2>/dev/null else nvim $@