[fish] avoid fisher install if not interactive

This commit is contained in:
eleith 2023-03-29 04:37:54 +00:00
parent 7ed4496940
commit 33881ebaee
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ if type -q fzf
end
end
if not functions -q fisher
if not functions -q fisher && status is-interactive
echo "Installing fisher for the first time..." >&2
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
curl https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish