[fish] avoid fisher install if not interactive
This commit is contained in:
parent
7ed4496940
commit
33881ebaee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue