[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to customize shell prompt (for emacs tramp compatibility)

From: George Clemmer
Subject: Re: how to customize shell prompt (for emacs tramp compatibility)
Date: Thu, 13 Dec 2018 16:07:52 -0500
User-agent: mu4e 1.0; emacs 26.1

Giovanni Biscuolo <address@hidden> 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
(setq tramp-remote-path
      (append tramp-remote-path
              '("~/.guix-profile/bin" "~/.guix-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-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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]