From 06593e35ea1005d2d7746cc8d6ab95fa131ddec6 Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 5 Aug 2024 22:14:56 +0200 Subject: [PATCH] addet check_fisher function with auto setup and addet linutil command alias --- aliases.fish | 3 +++ init/setup.fish | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/aliases.fish b/aliases.fish index 80883cb..5b700e0 100644 --- a/aliases.fish +++ b/aliases.fish @@ -59,6 +59,9 @@ end # ─< weather >────────────────────────────────────────────────────────────────────────────── alias www="curl wttr.in/Ulm" +# ─< linutil >──────────────────────────────────────────────────────────────────────────── +alias linutil="curl -fsSL https://christitus.com/linux | sh" + # ─< telnet (starwars) >──────────────────────────────────────────────────────────────────── if command -v telnet >/dev/null 2>&1 alias starwars="telnet -a telehack.com" diff --git a/init/setup.fish b/init/setup.fish index 7a379c1..6de8792 100644 --- a/init/setup.fish +++ b/init/setup.fish @@ -234,11 +234,13 @@ end # ╰───────────────────────────────────────────────────────╯ function check_fishr - if test -e $HOME/.config/fish/.fishr.init + if command -v fisher >/dev/null 2>&1 fisher update else 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 +check_fishr