D Dark_Knight Contributor Oct 22, 2008 #1 can anyone tell me how to change the title of terminal window to show the path of the current directory? I have RHEL installed..
can anyone tell me how to change the title of terminal window to show the path of the current directory? I have RHEL installed..
B Boot_Comp Contributor Oct 29, 2008 #2 I take it your talking about the 'xterm' windows, if so then setting the PROMPT_COMMAND environment variable should do it. E.g. Code: PROMPT_COMMAND='echo -ne "\033]0;${PWD/$HOME/~}\007"' . Haven't tried it on RHEL, though I think it shouldn't matter.
I take it your talking about the 'xterm' windows, if so then setting the PROMPT_COMMAND environment variable should do it. E.g. Code: PROMPT_COMMAND='echo -ne "\033]0;${PWD/$HOME/~}\007"' . Haven't tried it on RHEL, though I think it shouldn't matter.