|
#1
|
|||
|
|||
Tab name = Connected device
I am trying to figure out how to get my tab name to automatically be populated with my connected linux device. I searched the site and found the following but not sure how to implement for a global change. I could do it per session but would rather automatic and global.
echo -ne "\033]2;`hostname`\007" Any ideas? Thanks, |
#2
|
|||
|
|||
Hi arries289,
You can make the change on a global or multi-session basis using one of the following tips respectively: http://www.vandyke.com/support/tips/defaultset.htmlDoes this help you accomplish your goal? |
#3
|
|||
|
|||
Hi arries289,
An alternative to your current approach would be to modify the remote shell to use bash and then set the PROMPT_COMMAND environment variable. Here is an example that will set the hostname for the tab: PROMPT_COMMAND='printf "\033]0;%s\007" "${HOSTNAME%%.*}"' |
#4
|
|||
|
|||
Thanks guys for the info!
|
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|