Skip to content

Commit

Permalink
run_vim.sh: exec everything that's not in /vim-build/bin (#10)
Browse files Browse the repository at this point in the history
This fixes `nvim` being executed from `/usr/local/bin`, although it is
installed/linked in `/vim-build/bin`.

Ref: #9 (comment)
  • Loading branch information
blueyed authored Oct 8, 2016
1 parent 30abced commit 5f8091d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run_vim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ shift
if [ "$BIN" == "bash" ] || [ -z "$BIN" ]; then
exec /bin/bash
fi
if [ -n "$(/usr/bin/which "$BIN")" ]; then
if ! [ -x "/vim-build/bin/$BIN" ]; then
exec "$BIN" "$@"
fi

Expand Down

0 comments on commit 5f8091d

Please sign in to comment.