Re: addressable titlebars for Gnome-terminal?



from the command prompt, one can put one's login and machine in the title
bar using this:

export PROMPT_COMMAND='echo -ne "CTRL-V ESC]0;"`whoami`@`hostname`"CTRL-V
CTRL-G"'

NOTES:  i added spaces between "CTRL-V ESC" and "CTRL-V CTRL-G" only for
clarity's sake.  the ticks surrounding `whoami` and `hostname` are _not_
single quotes, they're backticks (e.g. they share a key with the ~
character on US keyboards).  when "CTRL-V ESC" is typed, it looks like
"^[" and "CTRL-V CTRL-G"  looks like "^G".



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]