From b036441440385797ed98e303417751758426fcb9 Mon Sep 17 00:00:00 2001 From: klaas Date: Sat, 19 Jul 2025 18:07:00 +0200 Subject: [PATCH] fish-install --- install_functions.fish | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 install_functions.fish diff --git a/install_functions.fish b/install_functions.fish new file mode 100644 index 0000000..c921d12 --- /dev/null +++ b/install_functions.fish @@ -0,0 +1,43 @@ +# install_fish_functions.fish +function mkcdir + mkdir -p -- $argv[1] + cd -P -- $argv[1] +end +funcsave mkcdir + +function newgit + mkcdir $argv[1] + git init + git checkout -b main + touch README.md + git add . + git commit -a -m "initial commit" + git remote add origin https://git.boergmann.it/klaas/$argv[1].git + git push -u origin main +end +funcsave newgit + +function fframes + mkdir $argv[1] + ffmpeg -i "$argv[1].mp4" "$argv[1]/%03d.jpg" +end +funcsave fframes + +function gitclone + git clone https://git.boergmann.it/klaas/$argv[1].git + cd $argv[1] +end +funcsave gitclone + +alias doch='sudo (history --max=1 | string split " " | string join " ")' +funcsave doch + +alias s001='ssh klaas@s001' +funcsave s001 + +alias s002='ssh klaas@s002.boergmann.it' +funcsave s002 + +alias s003='ssh harald@klaas-boergmann.de' +funcsave s003 +