From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: GuixSD and TRAMP Date: Tue, 25 Oct 2016 11:45:33 -0500 Message-ID: <87bmy88jiq.fsf@dustycloud.org> References: <87y41k2d4o.fsf@dustycloud.org> <87wph42bp3.fsf@dustycloud.org> <87wph2ybv0.fsf@gnu.org> <87r379anuq.fsf@gmail.com> <867f8xbldg.fsf@gmail.com> <87d1io8osg.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz4r6-0008Qz-Hg for help-guix@gnu.org; Tue, 25 Oct 2016 12:45:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bz4r1-0005Kp-GL for help-guix@gnu.org; Tue, 25 Oct 2016 12:45:40 -0400 Received: from dustycloud.org ([50.116.34.160]:47392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bz4r1-0005KZ-3n for help-guix@gnu.org; Tue, 25 Oct 2016 12:45:35 -0400 In-reply-to: <87d1io8osg.fsf@dustycloud.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: myglc2 Cc: Alex Kost , help-guix Christopher Allan Webber writes: > I'm also not sure it will find the right paths if your username is > different on the remote host, and some of the binaries it's looking for > are in your user's profile there? Well, I just found in the `tramp-remote-path' docs: You can use =E2=80=98~=E2=80=99 in this list, but when searching for a = shell which groks tilde expansion, all directory names starting with =E2=80=98~=E2=80=99 = will be ignored. Given that, I've updated the code I'm using to: #+BEGIN_SRC emacs-lisp ;; Make sure we work on remote guixsd machines :) ;; probably only helps if you start on a guixsd machine..! (setq tramp-remote-path (append tramp-remote-path '(tramp-own-remote-path "~/.guix-profile/bin" "~/.guix-profile/sbin"))) #+END_SRC But maybe the best option would be: #+BEGIN_SRC emacs-lisp ;; Make sure we work on remote guixsd machines :) ;; probably only helps if you start on a guixsd machine..! (setq tramp-remote-path (append tramp-remote-path '("~/.guix-profile/bin" "~/.guix-profile/sbin" "/run/current-system/profile/bin" "/run/current-system/= profile/sbin"))) #+END_SRC That seems like the best general case route? We could keep tramp-own-remote-path in there too, I guess?