Michael Albinus writes: > "Christopher M. Miles" writes: > > Hi Christopher, > >> Indeed, It tested on Raspberry Pi Bash, it works fine now. Seems problem indeed is on Zsh. >> >> I found TRAMP Info manual mentioned setting remote server shell for TRAMP. I tried bellowing elisp setting: >> >> #+begin_src emacs-lisp >> (add-to-list 'tramp-connection-properties >> (list (regexp-quote "/ssh::") >> "remote-shell" "/bin/bash")) >> (add-to-list 'tramp-connection-properties >> (list (regexp-quote "/ssh:Mac-mini.local:") >> "remote-shell" "/bin/bash")) >> (add-to-list 'tramp-connection-properties >> (list (regexp-quote "/ssh:stardiviner@localhost:") >> "remote-shell" "/bin/bash")) >> (add-to-list 'tramp-connection-properties >> (list (regexp-quote "/ssh:raspberry_pi-wireless:") >> "remote-shell" "/bin/bash")) >> (add-to-list 'tramp-connection-properties >> (list (regexp-quote "/ssh:pi@192.168.31.36:") >> "remote-shell" "/bin/bash")) >> (add-to-list 'tramp-connection-properties >> (list (regexp-quote "/ssh:root@192.168.31.36:") >> "remote-shell" "/bin/bash")) >> (add-to-list 'tramp-connection-properties >> (list (regexp-quote "/ssh:qnap_nas_stardiviner:") >> "remote-shell" "/bin/bash")) >> #+end_src >> >> The 1~3 part of sexps should let TRAMP invoke Bash on my macOS instead of default login Zsh. But >> it's not working. Maybe I understand that wrong? Or my setting is wrong? > > Your setting looks OK. Do you have tried this with "emacs -Q"? And you > know, that you must perform these settings *before* accessing the > respective host the first time. > > If it doesn't work, pls produce Tramp traces with tramp-verbose set to 10. > > Best regards, Michael. Thanks for helping me to troubleshooting this problem. Sorry for late response. Today I spend some time on this task. Running command "emacs -Q" and load the following config: #+begin_src emacs-lisp (when (eq system-type 'darwin) ;; Each SYMBOL is control, meta, alt, super, hyper or none. ;; Use Alt key as Hyper (setq mac-option-modifier 'super) ; S- ~ ;; Use Command key as Meta (setq mac-command-modifier 'meta) ;; (setq mac-right-option-modifier 'hyper) (global-set-key [kp-delete] 'delete-char) ; sets fn-delete to be right-delete ) (require 'tramp) (setq tramp-verbose 10) (add-to-list 'tramp-connection-properties (list (regexp-quote "/ssh:raspberry_pi-wireless:") "remote-shell" "/bin/bash")) #+end_src The Raspberry Pi Linux default login shell is Zsh, with upper settings, I can normally access with TRAMP. After testing, it works. So I guess the problem is still on my Emacs config. Really sorry about this wasted your time. -- [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3