use test to not install programs if already installed
This commit is contained in:
@@ -10,8 +10,13 @@ if status is-interactive
|
|||||||
if test -f ~/.config/fish/config.fish.local
|
if test -f ~/.config/fish/config.fish.local
|
||||||
source ~/.config/fish/config.fish.local
|
source ~/.config/fish/config.fish.local
|
||||||
end
|
end
|
||||||
|
if test -f ~/.config/fish/config.local.fish
|
||||||
|
source ~/.config/fish/config.local.fish
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
alias ls="lsd"
|
||||||
|
|
||||||
fish_add_path $HOME/.webman/bin
|
fish_add_path $HOME/.webman/bin
|
||||||
|
|
||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
|
|||||||
@@ -1,11 +1,18 @@
|
|||||||
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
|
# if fisher is not installed, install it
|
||||||
|
if not functions -q fisher
|
||||||
fisher install IlanCosman/tide@v6
|
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
|
||||||
fisher install PatrickF1/fzf.fish
|
end
|
||||||
|
if functions -q fisher
|
||||||
|
fisher install IlanCosman/tide@v6
|
||||||
|
fisher install PatrickF1/fzf.fish
|
||||||
|
end
|
||||||
|
|
||||||
fish_add_path ~/.webman/bin/
|
fish_add_path ~/.webman/bin/
|
||||||
|
|
||||||
bash (curl https://raw.githubusercontent.com/atuinsh/atuin/main/install.sh | psub)
|
# if atuin is not installed, install it
|
||||||
if type -q $atuin
|
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
|
atuin import auto
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user