I have a local environment which is MacOS Catalina and a remote environment which is standard Linux. I use tramp to connect to the remote linux machine to work on it.
Unfortunately, Catalina now defaults to zshell (
/bin/zsh) and the linux is standard bash (
Depending on how I configure my
.emacs file, when I invoke
M-x shell, it either will default to bash or zshell regardless of the environment. I've tried multiple fixes so that emacs defaults to bash on linux and zshell on macos. The current
.emacs I have so far, based on the tramp manual, looks like this:
(defun connect-my-linux-host () (interactive) (dired "/scp:myname@my-linux-host-url:~")) (add-to-list 'tramp-connection-properties (list (regexp-quote "/scp:myname@my-linux-host-url:") "remote-shell" "/bin/bash")) (connection-local-set-profile-variables 'remote-bash '((explicit-shell-file-name . "/bin/bash"))) (connection-local-set-profiles '(:application tramp :protocol "scp" :machine "myname@my-linux-host") 'remote-bash)
The above configuration defaults to zshell in every environment.
What am I doing wrong?