This commit is contained in:
klaas 2025-08-01 17:32:30 +02:00
parent b036441440
commit 1ec3dc35ea
1 changed files with 35 additions and 0 deletions

35
fish.sh Normal file
View File

@ -0,0 +1,35 @@
function mkcd
mkdir -p -- $argv[1]
cd -P -- $argv[1]
end
funcsave mkcd
function newgit
mkcd $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 gitclone
git clone https://git.boergmann.it/klaas/$argv[1].git
cd $argv[1]
end
funcsave gitclone
function doch
set last (history | head -n 1 | string split " " | tail -n +3 | string join " ")
eval sudo $last
end
funcsave doch
alias s001='ssh klaas@s001'
funcsave s001
alias s002='ssh klaas@s002.boergmann.it'
funcsave s002