Skip to content

Commit 5f8091d

Browse files
authored
run_vim.sh: exec everything that's not in /vim-build/bin (#10)
This fixes `nvim` being executed from `/usr/local/bin`, although it is installed/linked in `/vim-build/bin`. Ref: #9 (comment)
1 parent 30abced commit 5f8091d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/run_vim.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ shift
66
if [ "$BIN" == "bash" ] || [ -z "$BIN" ]; then
77
exec /bin/bash
88
fi
9-
if [ -n "$(/usr/bin/which "$BIN")" ]; then
9+
if ! [ -x "/vim-build/bin/$BIN" ]; then
1010
exec "$BIN" "$@"
1111
fi
1212

0 commit comments

Comments
 (0)