addet check_fisher function with auto setup and addet linutil command alias

This commit is contained in:
pika 2024-08-05 22:14:56 +02:00
parent 79473ef90f
commit 06593e35ea
2 changed files with 7 additions and 2 deletions

View file

@ -59,6 +59,9 @@ end
# ─< weather >────────────────────────────────────────────────────────────────────────────── # ─< weather >──────────────────────────────────────────────────────────────────────────────
alias www="curl wttr.in/Ulm" alias www="curl wttr.in/Ulm"
# ─< linutil >────────────────────────────────────────────────────────────────────────────
alias linutil="curl -fsSL https://christitus.com/linux | sh"
# ─< telnet (starwars) >──────────────────────────────────────────────────────────────────── # ─< telnet (starwars) >────────────────────────────────────────────────────────────────────
if command -v telnet >/dev/null 2>&1 if command -v telnet >/dev/null 2>&1
alias starwars="telnet -a telehack.com" alias starwars="telnet -a telehack.com"

View file

@ -234,11 +234,13 @@ end
# ╰───────────────────────────────────────────────────────╯ # ╰───────────────────────────────────────────────────────╯
function check_fishr function check_fishr
if test -e $HOME/.config/fish/.fishr.init if command -v fisher >/dev/null 2>&1
fisher update fisher update
else else
if test ! -e $HOME/.config/fish/functions/fisher.fish if test ! -e $HOME/.config/fish/functions/fisher.fish
echo "you did it!!" >$HOME/.config/fish/.fishr.init && curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source & fisher install jorgebucaran/fisher curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source & fisher install jorgebucaran/fisher
fisher update
end end
end end
end end
check_fishr