From ba819fb2a6e00814e7dcd1c1fe81ae521a8b77f9 Mon Sep 17 00:00:00 2001 From: "pweemeeuw@86491f921da15d6a4dc6e1878fd42750b33f6963" Date: Mon, 30 Nov 2015 16:11:26 +0000 Subject: [PATCH] Added a comment: Got Nixos server configured as a ssh remote (FYI) --- ..._e202a6dd2803f733bd30ec8b6ddbe7bf._comment | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 doc/forum/Git_annex_assistant_can__39__t_find_rsync_nor_git-annex_on_server/comment_3_e202a6dd2803f733bd30ec8b6ddbe7bf._comment diff --git a/doc/forum/Git_annex_assistant_can__39__t_find_rsync_nor_git-annex_on_server/comment_3_e202a6dd2803f733bd30ec8b6ddbe7bf._comment b/doc/forum/Git_annex_assistant_can__39__t_find_rsync_nor_git-annex_on_server/comment_3_e202a6dd2803f733bd30ec8b6ddbe7bf._comment new file mode 100644 index 0000000000..412a370a57 --- /dev/null +++ b/doc/forum/Git_annex_assistant_can__39__t_find_rsync_nor_git-annex_on_server/comment_3_e202a6dd2803f733bd30ec8b6ddbe7bf._comment @@ -0,0 +1,19 @@ +[[!comment format=mdwn + username="pweemeeuw@86491f921da15d6a4dc6e1878fd42750b33f6963" + nickname="pweemeeuw" + subject="Got Nixos server configured as a ssh remote (FYI)" + date="2015-11-30T16:11:26Z" + content=""" +It needed some plumbing, this is what I did: + +_~/.ssh/rc_: + + PATH=$HOME/bin:$HOME/.nix-profile/bin:/run/current-system/sw/bin + +Since _which_ is an alias (and hence still doesn't work for 'ssh foo which rsync'), I added a shell script _$HOME/bin/which_: + + #!/run/current-system/sw/bin/bash + type -P $@ + +Verified to work (syncs both ways) with a cloned repository on arch linux. +"""]]