emacs tramp-remote-path does not include guix home

  • Open
  • quality assurance status badge
Details
One participant
  • Zacchaeus Scheffer
Owner
unassigned
Submitted by
Zacchaeus Scheffer
Severity
normal
Z
Z
Zacchaeus Scheffer wrote on 8 Jul 2023 20:12
(address . bug-guix@gnu.org)
87edli2ryi.fsf@gmail.com
Hi Guix!

I noticed that the emacs package has the following value for
tramp-remote-path out of the box:

(tramp-default-remote-path "~/.guix-profile/bin" "~/.guix-profile/sbin"
"/run/current-system/profile/bin" "/run/current-system/profile/sbin"
"/bin" "/usr/bin" "/sbin" "/usr/sbin" "/usr/local/bin" ...)

This does not seem to include guix home bin dirs. Indeed, when I
connect to my remote machine via tramp, and try to run "git", I get:

git: command not found

This can be fixed by evaluating:

(setq tramp-remote-path (-cons* "~/.guix-home/profile/bin"
"~/.guix-home/profile/sbin"
tramp-remote-path))
(tramp-cleanup-all-connections)

In which case, running "git" in a remote shell gives the expected git
help message.

Is there a reason guix home bin dirs are omitted?

-Zacchae
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 64534@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 64534
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch