Open tony-sol opened 4 months ago
Great!
Sorry, but can't link this pr to issue https://github.com/soyuka/tmux-current-pane-hostname/issues/21
I like this approach as well, because it works, for example, with ssh -v
, unlike the original solution.
@soyuka is everything good?
Probably busy giving talks :) I have been using the fork so far and all is good
Improve
get_remote_info
function by making it to fetch actual ssh configuration options (like host, port, user) viassh -G
and parse its output, instead of parsing ~/.ssh/config file.This makes the plugin unbound from the
.ssh/config
file and more accurate in case of multipleHost some-wildcard*
sections, e.g.:ssh prod-app
correct values will be:according to
ssh -G prod-app | head -4
ssh myself@prod-app -p 9999
correct values will be:according to
ssh -G myself@prod-app -p 9999 | head -4