minor changes
This commit is contained in:
parent
7b916265d4
commit
06f79d203e
1 changed files with 16 additions and 11 deletions
|
@ -153,7 +153,6 @@ function gsa
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Addet $name as a submodule"
|
git commit -m "Addet $name as a submodule"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
# ─< If the user inputs 'n' or 'N', notify them to try again >──────────────────────────────
|
# ─< If the user inputs 'n' or 'N', notify them to try again >──────────────────────────────
|
||||||
case 'n' 'N'
|
case 'n' 'N'
|
||||||
echo "-- all right, just try again :) --"
|
echo "-- all right, just try again :) --"
|
||||||
|
@ -182,10 +181,11 @@ end
|
||||||
# │ FUNCTION: check fisher plugin dependencies │
|
# │ FUNCTION: check fisher plugin dependencies │
|
||||||
# ╰────────────────────────────────────────────╯
|
# ╰────────────────────────────────────────────╯
|
||||||
function dep_fisher
|
function dep_fisher
|
||||||
|
if not set -q $_fishr_dep
|
||||||
# ─< Define dependencies for the plugins used by fisher >───────────────────────────────────
|
# ─< Define dependencies for the plugins used by fisher >───────────────────────────────────
|
||||||
begin
|
|
||||||
set dependencies "fzf" "btop" "fastfetch" "curl" "wget" "cmatrix"
|
set dependencies "fzf" "btop" "fastfetch" "curl" "wget" "cmatrix"
|
||||||
# ─< Check and install dependencies >───────────────────────────────────────────────────────
|
# ─< Check and install dependencies >───────────────────────────────────────────────────────
|
||||||
|
while ! test -e ./.check
|
||||||
for dep in $dependencies
|
for dep in $dependencies
|
||||||
if not command -v $dep >/dev/null 2>&1
|
if not command -v $dep >/dev/null 2>&1
|
||||||
echo "Dependency $dep is not installed. Installing..."
|
echo "Dependency $dep is not installed. Installing..."
|
||||||
|
@ -194,10 +194,15 @@ function dep_fisher
|
||||||
fish_install $dep
|
fish_install $dep
|
||||||
else
|
else
|
||||||
echo "FISH_INSTALL is not defined: $FISH_INSTALL | Please install $dep manually."
|
echo "FISH_INSTALL is not defined: $FISH_INSTALL | Please install $dep manually."
|
||||||
|
return 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
set _fishr_dep
|
||||||
|
else
|
||||||
|
echo "Dependencies already installed!"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# ╭───────────────────────────────────────────────────────╮
|
# ╭───────────────────────────────────────────────────────╮
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue