This commit is contained in:
despiegk 2024-01-13 14:06:19 +03:00
parent df1b9945bf
commit cb15e19bab
Signed by: despiegk
GPG Key ID: 99E4E1492F73BC18

View File

@ -29,22 +29,12 @@ export def clone_nuscripts [ --reset=false , --pull=false ] string {
let $r = git git_clone nuscripts "git@git.ourworld.tf:despiegk/nuscripts.git"
rm -f $dest
ln -s $r $dest
sync_nuscripts
return $r
} else {
error make { msg: "load ssh-agent" }
}
}
export def sync_nuscripts [ --reset=false , --pull=false ] string {
let $code_dir = $"($env.BASE)code/nuscripts/"
let $dest_org = $"($env.BASE)/nushell/"
if not ($code_dir | path exists) {
print $"could not find ($code_dir) to sync to nushell dir"
exit 1
}
rsync -rav --exclude .git $code_dir $dest_org
}