Added a comment: Got Nixos server configured as a ssh remote (FYI)
authorpweemeeuw@86491f921da15d6a4dc6e1878fd42750b33f6963 <pweemeeuw@web>
Mon, 30 Nov 2015 16:11:26 +0000 (16:11 +0000)
committeradmin <admin@branchable.com>
Mon, 30 Nov 2015 16:11:26 +0000 (16:11 +0000)
doc/forum/Git_annex_assistant_can__39__t_find_rsync_nor_git-annex_on_server/comment_3_e202a6dd2803f733bd30ec8b6ddbe7bf._comment [new file with mode: 0644]

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 (file)
index 0000000..412a370
--- /dev/null
@@ -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.
+"""]]