use test to not install programs if already installed

This commit is contained in:
2024-03-27 18:23:10 -06:00
parent 409d7b6576
commit da608a9d84
2 changed files with 18 additions and 6 deletions

View File

@@ -1,11 +1,18 @@
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
fisher install IlanCosman/tide@v6
fisher install PatrickF1/fzf.fish
# if fisher is not installed, install it
if not functions -q fisher
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
end
if functions -q fisher
fisher install IlanCosman/tide@v6
fisher install PatrickF1/fzf.fish
end
fish_add_path ~/.webman/bin/
bash (curl https://raw.githubusercontent.com/atuinsh/atuin/main/install.sh | psub)
if type -q $atuin
# if atuin is not installed, install it
if not type -q atuin
bash (curl https://raw.githubusercontent.com/atuinsh/atuin/main/install.sh | psub)
end
if type -q atuin
atuin import auto
end