mirror of https://git.jolheiser.com/ugit.git
Compare commits
2 Commits
ffbfbad566
...
57e00fa690
Author | SHA1 | Date |
---|---|---|
jolheiser | 57e00fa690 | |
jolheiser | 1b9796ed0b |
|
@ -1,16 +1,19 @@
|
||||||
# Clean
|
def main [user = "jolheiser", base_url = "https://git.jolheiser.com", repos = ["ugit", "helix.drv", "tmpl"]] {
|
||||||
rm -r .ugit/
|
|
||||||
rm -r .ssh/
|
|
||||||
|
|
||||||
# SSH
|
# Clean
|
||||||
mkdir .ssh
|
try {
|
||||||
http get https://github.com/jolheiser.keys | save --force .ssh/authorized_keys
|
rm -r .ugit/
|
||||||
|
rm -r .ssh/
|
||||||
|
}
|
||||||
|
|
||||||
# Git
|
# SSH
|
||||||
mkdir .ugit
|
mkdir .ssh
|
||||||
git clone --bare https://git.jolheiser.com/ugit.git .ugit/ugit.git
|
http get $"https://github.com/($user).keys" | save --force .ssh/authorized_keys
|
||||||
{"private": false, "description": "ugit"} | save .ugit/ugit.git/ugit.json
|
|
||||||
git clone --bare https://git.jolheiser.com/helix.drv.git .ugit/helix.drv.git
|
# Git
|
||||||
{"private": false, "description": "helix.drv"} | save .ugit/helix.drv.git/ugit.json
|
mkdir .ugit
|
||||||
git clone --bare https://git.jolheiser.com/jolheiser.com.git .ugit/jolheiser.com.git
|
for $repo in $repos {
|
||||||
{"private": false, "description": "jolheiser.com"} | save .ugit/jolheiser.com.git/ugit.json
|
git clone --bare $"($base_url)/($repo).git" $".ugit/($repo).git"
|
||||||
|
{"private": false, "description": $repo} | save $".ugit/($repo).git/ugit.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ layout {
|
||||||
command "nix"
|
command "nix"
|
||||||
args "develop"
|
args "develop"
|
||||||
size "90%"
|
size "90%"
|
||||||
|
start_suspended true
|
||||||
}
|
}
|
||||||
pane split_direction="vertical" {
|
pane split_direction="vertical" {
|
||||||
pane {
|
pane {
|
||||||
|
|
Loading…
Reference in New Issue