Repository metrics
- Stars
- (4,281 stars)
- PR merge metrics
- (Avg merge 4d 6h) (2 merged PRs in 30d)
Description
I would like tab names changed whenever I ssh to remote machine. I would like tab to be renamed to remote host name I used in ssh command. I have .ssh/config with a lot of remote host configs. Usually they are in the form <domain>.<hostname>. So most of the time ssh command is:
ssh domain.host
I would like tab to be renamed to domain.host.
Of course sometimes I need custom ssh options and params (like port forwarding, proxy or use different keys). Would be nice if tab renaming could figure out the hostname in ssh cmd line.
I've reviewed a issues in guake github and not sure if that should already work. I've tried several suggested escape sequences suggested in several issues on github, but none of them changed anything.
echo -en "\033]0;New terminal title\a"
printf '\x1b]0;asdf@qwer.zxcv\a'
Maybe it's my .bashrc, but don't know how to figure out. Few years ago I wrote a primitive patch to guake for that feature. See attached diff file. I think that was for 3.8.4 version. Actually I took the idea from Yakuake.
On guake github issues I found a suggestion to use bash funchtion for that:
function ssh() {
guake -r "$@";
/usr/bin/ssh $@
guake -r "-"
}
That also does the trick. Need to add some getopts to parse options and figure out the hostname in ssh cmd though.
Anyway seems like nice feature to me. If it is already implemented, could you please give me some info about how to use that. I run Fedora 36 now.
Liutauras
guake --support
<details><summary>$ guake --support</summary>
Guake Version: 3.9.1.dev16
Vte Version: 0.68.0
Vte Runtime Version: 0.68.0
--------------------------------------------------
GTK+ Version: 3.24.34
GDK Backend: <GdkX11.X11Display
--------------------------------------------------
Desktop Session: gnome
--------------------------------------------------
Display: :0
RGBA visual: True
Composited: True
* Monitor: 0 - XWAYLAND0
* Geometry: 2560 x 1440 at 0, 0
* Size: 600 x 340 mm²
* Primary: True
* Refresh rate: 59.912 Hz
* Subpixel layout: unknown
* Monitor: 1 - XWAYLAND1
* Geometry: 1920 x 1080 at 2560, 0
* Size: 340 x 190 mm²
* Primary: False
* Refresh rate: 59.962 Hz
* Subpixel layout: unknown