Compare commits

...

2 Commits

Author SHA1 Message Date
jolheiser 57e00fa690
chore: update layout contrib
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2024-03-25 21:08:52 -05:00
jolheiser 1b9796ed0b
feat: add simple dev contrib
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2024-03-25 21:00:18 -05:00
2 changed files with 20 additions and 0 deletions

19
contrib/dev.nu 100644
View File

@ -0,0 +1,19 @@
def main [user = "jolheiser", base_url = "https://git.jolheiser.com", repos = ["ugit", "helix.drv", "tmpl"]] {
# Clean
try {
rm -r .ugit/
rm -r .ssh/
}
# SSH
mkdir .ssh
http get $"https://github.com/($user).keys" | save --force .ssh/authorized_keys
# Git
mkdir .ugit
for $repo in $repos {
git clone --bare $"($base_url)/($repo).git" $".ugit/($repo).git"
{"private": false, "description": $repo} | save $".ugit/($repo).git/ugit.json"
}
}

View File

@ -5,6 +5,7 @@ layout {
command "nix"
args "develop"
size "90%"
start_suspended true
}
pane split_direction="vertical" {
pane {