diff --git a/nushell/tools/herotools.nu b/nushell/tools/herotools.nu index 8f9d489..5c5d7a5 100644 --- a/nushell/tools/herotools.nu +++ b/nushell/tools/herotools.nu @@ -24,10 +24,12 @@ export def clone_crystal [ --reset=false , --pull=false ] string { export def clone_nuscripts [ --reset=false , --pull=false ] string { let $ssha = sshagent_loaded let $dest = $"($env.BASE)/nuscripts" + let $dest_org = $"($env.BASE)/nushell" if $ssha { let $r = git git_clone nuscripts "git@git.ourworld.tf:despiegk/nuscripts.git" rm -f $dest - ln -s $r $dest + ln -s $r $dest + rsync -rav --exclude .git $r $dest_org return $r } else { error make { msg: "load ssh-agent" } diff --git a/shell.nix b/shell.nix index 2bde5eb..afb80fe 100644 --- a/shell.nix +++ b/shell.nix @@ -17,6 +17,7 @@ pkgs.mkShell { python311Packages.ipython python311Packages.ipdb python311Packages.rq + rsync # rustc # dumptorrent # udpt