From 4c2571324b9a451a8d1ec0b73161a2f166c47db3 Mon Sep 17 00:00:00 2001 From: despiegk Date: Sat, 13 Jan 2024 13:43:21 +0300 Subject: [PATCH] d --- nushell/tools/herotools.nu | 4 +++- shell.nix | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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