Skip to content

Commit e1bc2a1

Browse files
authored
run_vim.sh: use explicit HOME in /tmp (#11)
This is required for Neovim to suppress errors that it cannot write to ~/.local etc.
1 parent 5f8091d commit e1bc2a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/run_vim.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ done
2121

2222
# Run as the vimtest user. This is not really for security. It is for running
2323
# Vim as a user that's unable to write to your volume.
24-
exec su -l vimtest -c "cd /testplugin && /vim-build/bin/$BIN $ARGS"
24+
cd /testplugin || exit
25+
exec su -l vimtest -c "env HOME=/tmp/vimtestbed-home /vim-build/bin/$BIN $ARGS"

0 commit comments

Comments
 (0)