How to avoid the question "Add bob-managed Neovim binary to your $PATH automatically?" in scripts #312
-
I install bob automatically via a bootstrap script via cargo. After it is installed I want to install the nightly version of neovim and activate it. The path to bob's nvim-bin directory is added automatically, but is available only after the script ends. I use the commands: if ! bob --version >/dev/null 2>&1; then
echo "Installing bob (neovim version manager)"
cargo install --locked bob-nvim
fi
if ! nvim --version >/dev/null 2>&1; then
echo "Installing neovim (nightly)"
bob use nightly
fi but there seems no flag, that avoids that question in the title and the bootstrap gets stuck. Any idea, how to avoid this? Thanks, Michael. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, I am not sure how your bootstrap script works, but inside of the bob config you can set Edit: I will have to add this field to the docs as it seems i forgot about it. |
Beta Was this translation helpful? Give feedback.
Hello, I am not sure how your bootstrap script works, but inside of the bob config you can set
add_neovim_binary_to_path
to either true or false and it will disable this prompt.Edit: I will have to add this field to the docs as it seems i forgot about it.