[fish] install fisher if not available

This commit is contained in:
eleith 2023-03-22 04:50:50 +00:00
parent 750249cb31
commit f74bf435a8
1 changed files with 2 additions and 2 deletions

View File

@ -52,6 +52,6 @@ end
if not functions -q fisher
echo "Installing fisher for the first time..." >&2
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
fisher
curl https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
fish -c fisher update
end