Closed HawkinsT closed 7 months ago
You can achieve your goal cleanly using the status is-interactive command in Fish.
if status is-interactive
# ...
end
Oh, wow. I guess I should have been aware of this but thanks a lot! Sorry for the poor feature request.
Whenever fisher is run it sources config.fish. In general this is good, however I have my config.fish set to look for fisher and install it (as well as a specified list of fisher plugins). Unfortunately, this leads to endless loops requiring a hacky work around (since fisher is self-installing and so keeps resourcing config.fish).
MWE of what's required to avoid this:
Given this use case, can a flag please be added to fisher that will stop config.fish being resourced on command completion, e.g.
fisher -N install jorgebucaran/fisher
orfisher install jorgebucaran/fisher --no-reload
.