[Nix-dev] getconf PATH

Ludovic Courtès ludo at gnu.org
Sun Jun 2 15:55:12 CEST 2013


Hi!

coroa at online.de (Jonas Hörsch) skribis:

> i've just been debugging emacs remote editing per ssh onto a nixos
> machine, and found that emacs fails to find the correct path on the
> remote machine and then errors out on missing the ls command.

FWIW, I worked around this with this .emacs snippet:

--8<---------------cut here---------------start------------->8---
;; Tell Tramp to use the value of "echo $PATH", which works better for
;; NixOS machines with a broken "getconf PATH".
(require 'tramp-sh)
(setq tramp-remote-path
      (append tramp-remote-path
	      '(tramp-own-remote-path)))
--8<---------------cut here---------------end--------------->8---

That said, I agree that doing something sensible with ‘getconf’ would be
even better.

HTH,
Ludo’.



More information about the nix-dev mailing list