Dear TRAMP community,

I'm trying to figure out how to set connection local profiles properly.
The problem is, when connecting through ssh using TRAMP, it never uses
the profile I want.

I connect through with /ssh:username@remote/
and I have set up my profile as follow:

(connection-local-set-profile-variables
 'remote-bird
 '((detached-shell-program . "/usr/bin/bash")
   (detached-session-directory . "~/tmp")
   (detached-dtach-program . "dtach")
   (shell-file-name . "/usr/bin/bash")
   (shell-command-switch . "-c")
   (conda-anaconda-home . "/CONDAS/users/username/anaconda3")
   (conda--executable-path . "/CONDAS/users/username/anaconda3/condabin/conda")
   (shell-interactive-switch . "-i")))

(connection-local-set-profiles
 '(:application tramp :protocol "ssh" :user "username" :machine "remote") 
'remote-bird)

Relevant variables:
-  connection-local-profile-alist:
    ((remote-bird
    (detached-shell-program . "/usr/bin/bash")
    (detached-session-directory . "~/tmp")
    (detached-dtach-program . "dtach")
    (shell-file-name . "/usr/bin/bash")
    (shell-command-switch . "-c")
    (conda-anaconda-home . "/CONDAS/users/username/anaconda3")
    (conda--executable-path . "/CONDAS/users/username/anaconda3/condabin/conda")
    (shell-interactive-switch . "-i"))
    (tramp-connection-local-default-shell-profile
    (shell-file-name . "/bin/sh")
    (shell-command-switch . "-c"))
    (tramp-connection-local-default-system-profile
    (path-separator . ":")
    (null-device . "/dev/null")))


- connection-local-criteria-alist is a variable defined in
    (((:application tramp :protocol "ssh" :user "username" :machine "remote")
    remote-bird)
    ((:protocol "ssh")
    remote-bird)
    ((:application tramp)
    tramp-connection-local-default-system-profile 
tramp-connection-local-default-shell-profile))


I don't understand why the remote-bird profile is not used with that set up.
Anything I could do to make it work ?

Best regards,
Simon

--
Simon CHEVOLLEAU

Reply via email to