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

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