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 $@