積丹尼 Dan Jacobson <[email protected]> writes: > On (info "(tramp) Android shell setup") there is mentioned e.g., > (add-to-list 'tramp-remote-path 'tramp-own-remote-path) > (add-to-list 'tramp-remote-path "/system/xbin") > (add-to-list 'tramp-remote-process-environment "TMPDIR=$HOME") > (add-to-list 'tramp-connection-properties > (list (regexp-quote "android") "remote-shell" "sh")) > > OK, the first three don't mention how to do it "per host". Only the last > one shows how to do it "per host (android)". Perhaps the rest should > too. And also show a wildcard example matching all hosts.
See (info "(tramp) Remote programs") --8<---------------cut here---------------start------------->8--- Starting with Emacs 26, ‘tramp-remote-path’ can be set per host via connection-local variables, *Note (emacs)Connection Variables::. You could define your own search directories like this: --8<---------------cut here---------------end--------------->8--- tramp-remote-process-environment is not prepared to be set host specific. A "wildcard" for a host in tramp-connection-properties is nil instead of the regexp, as the docstring of this variable tells you. An empty regexp like "" would serve as well. Best regards, Michael.
