I use guake very heavily, and ssh into more than 3 computers at any point in time. I also have daemons running on some tabs (terminals). What I want to know, Is it possible to have the name of the current command as the name of the Terminal? Rightclikcing a tab, and changing its name causes this: (Look at the tab after Terminal 5)
Thanks.
I am not sure this works for guake, it works for most terminal emulators. You can include an echo on your scripts to change the terminal title:
This is a guake (0.4.1) bug. I just see and solve this problem via this bug report though the author say this is not the best method: https://github.com/Guake/guake/issues/205
EDIT: guake 0.4.2 can change the tab name correctly
Bit of a hack, but this will rename the current terminal to whatever you ssh'ed for.
Also if you update your PROMPT_COMMAND, you can have a function to update the terminal name each time. Although this will not work for your ssh problem as it only changes the name after the command has run.
e.g.
When I want to change the tab name in guake, I just right-click the tab name and left-click rename. A pop-up box opens to type the new name into.
You can simply change the tabname with
If you want to get the latest running command, use for example
!!
is expanded by bash when you type it. It's not expanded by alias substitution. So you have to use thehistory
built-in to do the expansion to put it in an alias:when your last command was
then calling
will set the title to "echo".
If you change your shell to zsh, you can add this to your
~/.zshrc
:and it will show the current command and the current working directory. This works for all terminal emulators, not just guake.
To install zsh:
to try it out just say
to make it your default for new terminals: