Re: how to customize shell prompt (for emacs tramp compatibility)
Hi! George Clemmer writes: [...] > --8<---cut here---start->8--- > ;; Make tramp work from macOS to GuixSD > (require 'tramp) > (setq tramp-remote-path > (append tramp-remote-path > '(tramp-own-remote-path))) > (setq tramp-remote-path > (append tramp-remote-path > '("~/.guix-profile/bin" "~/.guix-profile/sbin" > "/run/current-system/profile/bin" > "/run/current-system/profile/sbin"))) > --8<---cut here---end--->8--- great, it worked! (I'm on Debian, so it's cross OS ;-) ) > The net effect ends up cached on the mac in ~/.emacs.d/tramp ... > > --8<---cut here---start->8--- [...] > ("ls" "/run/current-system/profile/bin/ls --color=never") [...] > --8<---cut here---end--->8--- the same here: with the above tramp-remote-path definition, it found a proper ls on the remote guix(SD) host thank you very much! happy hacking! Gio P.S.: from an "old school" sysadmin with FHS printed in every neuron, guix is a mind blowing and refreshing experience :-) -- Giovanni Biscuolo Xelera IT Infrastructures signature.asc Description: PGP signature
Re: how to customize shell prompt (for emacs tramp compatibility)
Giovanni Biscuolo writes: > I'm having problems to remotely browse my guixsd testing host using > emacs dired via tramp, the exact error message I get is: > > --8<---cut here---start->8--- > tramp-file-name-handler: Couldn’t find a proper ‘ls’ command > --8<---cut here---end--->8--- FWIW, on macOS running GNU Emacs 26.1 from brew I load this once ... --8<---cut here---start->8--- ;; Make tramp work from macOS to GuixSD (require 'tramp) (setq tramp-remote-path (append tramp-remote-path '(tramp-own-remote-path))) (setq tramp-remote-path (append tramp-remote-path '("~/.guix-profile/bin" "~/.guix-profile/sbin" "/run/current-system/profile/bin" "/run/current-system/profile/sbin"))) --8<---cut here---end--->8--- The net effect ends up cached on the mac in ~/.emacs.d/tramp ... --8<---cut here---start->8--- ;; -*- emacs-lisp -*- ;; Tramp connection history. Don't change this file. ;; You can delete it, forcing Tramp to reapply the checks. (((tramp-file-name "ssh" "glc" nil "g1" nil nil nil) ("uname" "Linux 4.19.0-gnu") ("locale" "LC_ALL=C") ("test" "test") ("remote-path" ("/bin")) ("remote-shell" "/bin/sh") ("~" "/home/glc") ("file-exists" "test -e") ("case-insensitive" nil) ("ls" "/run/current-system/profile/bin/ls --color=never") ("ls-quoting-style" t) ("ls-dired" t) ("stat" nil) ("perl" nil) ("id" "/run/current-system/profile/bin/id") ("gid-integer" 998))) --8<---cut here---end--->8--- ... after which tramp works fine. HTH - George
how to customize shell prompt (for emacs tramp compatibility)
Hi, I'm having problems to remotely browse my guixsd testing host using emacs dired via tramp, the exact error message I get is: --8<---cut here---start->8--- tramp-file-name-handler: Couldn’t find a proper ‘ls’ command --8<---cut here---end--->8--- I found this explanation on stackexchange https://stackoverflow.com/questions/6954479/emacs-tramp-doesnt-work/8363532#8363532 actually PS1 is \u@\h \w\$, it should be \u@\h:\w\$ to be "tramp compatible" please is there a way to declaratively customize user prompts in config.scm or similar? should that "unusual" prompt considered a bug to be fixed? [1] best regards Gio [1] I'm going where it's defined and try to propose a patch in guix-devel -- Giovanni Biscuolo Xelera IT Infrastructures signature.asc Description: PGP signature