LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I get gnometerm to display the machine I'm connected to? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-get-gnometerm-to-display-the-machine-im-connected-to-466234/)

dthacker 07-21-2006 09:10 AM

How do I get gnometerm to display the machine I'm connected to?
 
SuSE 9.3, Blackbox WM, Gnometerm 2.10.0

I use GnomeTerm to connect to 20 different servers in a day's work. Some of these servers will display the server name and pwd in the tab:
dthacker@fooserver:/usr/local/foo

Others will not:
dthacker@dthacker~

I think this is an interactions between Gnometerm and bash on the system I'm connecting too. Does anyone know what variable I need to set to get all the tabs to display the hostname in all the tabs?

TIA
Dave
:Pengy:

jayemef 07-21-2006 09:43 AM

This is a matter of playing with the PS1 variable on each of the machines. Using your first example, you would add/modify the following to each machines ~/.bashrc file:
Code:

# user@host:pwd$
PS1="\u@\h:\W\$ "

Once done, you can activate it with either of the following commands:
Code:

source .bashrc
# or
. .bashrc

If you use the screen command alot, you might also enjoy \l, which displays your tty. For more info, do a search on bash prompt configuration.

dthacker 08-15-2006 04:17 PM

I've set my PS1 like this on the target machine:
Code:

export PS1="[\u@\h]: \w\n$?> "
, but this is not getting picked up by gnometerm. Any other ideas?

TIA Dave


All times are GMT -5. The time now is 11:15 PM.