s
This commit is contained in:
parent
df1b9945bf
commit
cb15e19bab
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user