I had an auto install snippet in my config.fish
if not functions -q fisher
curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
fish -c fisher
end
Trying to use the install method, breaks, as it will never see that fisher exists in functions.
if not functions -q fisher
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
end
Is there a nice way to automate this?
Do it only if you're interactive.
if status is-interactive && ! functions --query fisher
curl --silent --location https://git.io/fisher | source && fisher install jorgebucaran/fisher
end
Of course! Thank you 👍
Most helpful comment
Do it only if you're interactive.