36 lines
666 B
Bash
36 lines
666 B
Bash
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
|