soyuka / tmux-current-pane-hostname

Tmux plugin that enables displaying hostname and user of the current pane in your status bar.
MIT License
76 stars 23 forks source link

#U interpolation doesn't work when using ~/.ssh/config #19

Open Oliveiras opened 3 years ago

Oliveiras commented 3 years ago

Tmux version: 3.0a

Description

U only knows my ssh username when I use it in ssh command, but not when I save the username in the ~/.ssh/config file.

How to reproduce
If I connect using ssh my_remote_user@another_host everything works. Now, write the following to the file ~/.ssh/config :

Host dev_server
    Hostname another_host
    User my_remote_user

And connect using ssh dev_server .

U doesn't get updated.

Possible Solution
I don't know if there is a solution. If not, just write this limitation in the README.

megalithic commented 3 years ago

having same issue as you :(

tony-sol commented 2 years ago

same issue