fish
This commit is contained in:
parent
b036441440
commit
1ec3dc35ea
|
@ -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
|
Loading…
Reference in New Issue