fixed some bugs

This commit is contained in:
PieckA 2024-05-25 15:11:42 +02:00
parent 39f0c2f4fe
commit fcf9d1d423
2 changed files with 17 additions and 15 deletions

View file

@ -13,8 +13,6 @@ function check_fisher
# Define plugins to use with fisher # Define plugins to use with fisher
set plugins "PatrickF1/fzf.fish" "jorgebucaran/autopair.fish" set plugins "PatrickF1/fzf.fish" "jorgebucaran/autopair.fish"
# Define dependencies for the plugins used by fisher
set dependencies "fzf"
# Loop for plugin installation/update # Loop for plugin installation/update
for plugin in $plugins for plugin in $plugins
@ -27,17 +25,4 @@ function check_fisher
end end
end end
# Check and install dependencies
for dep in $dependencies
if not command -v $dep >/dev/null 2>&1
echo "Dependency $dep is not installed. Installing..."
if test -n "$FISH_INSTALL"
upin
$install $dep
else
echo "FISH_INSTALL is not defined ' $FISH_INSTALL '. Please install $dep manually."
end end
end
end
end

17
functions/dep_fisher.fish Normal file
View file

@ -0,0 +1,17 @@
function dep_fisher
# Define dependencies for the plugins used by fisher
set dependencies "fzf"
# Check and install dependencies
for dep in $dependencies
if not command -v $dep >/dev/null 2>&1
echo "Dependency $dep is not installed. Installing..."
if test -n "$FISH_INSTALL"
upin
$FISH_INSTALL $dep
else
echo "FISH_INSTALL is not defined ' $FISH_INSTALL '. Please install $dep manually."
end
end
end
end