Re: Help please: PROMPT_COMMAND on gnome-terminal

2007-07-11 Thread Jean Jordaan
Hi there My PROMPT_COMMAND is still funky with screen & gnome-terminal. This almost works: """ [EMAIL PROTECTED]:~$ echo $PROMPT_COMMAND echo -ne "[EMAIL PROTECTED]:${PWD/#$HOME/~}\033\\ [EMAIL PROTECTED]:${PWD/$HOME/~}\033\\" """ Unfortunately that space at the beginning screws things up, beca

Re: Help please: PROMPT_COMMAND on gnome-terminal

2007-06-06 Thread Jean Jordaan
Hi all Looks like this works, to set the terminal title and screen window title: PROMPT_COMMAND='echo -ne "[EMAIL PROTECTED]:${PWD/#$HOME/~}\033\\ [EMAIL PROTECTED]:${PWD/$HOME/~}\033\\"' It doesn't work without the space between the two parts (i.e. the space after the first \\). -- jean

Help please: PROMPT_COMMAND on gnome-terminal

2007-05-30 Thread Jean Jordaan
Hi all I've had this in my ~/.bashrc for ages, but now I've switched from xterm to gnome-terminal: screen) PROMPT_COMMAND='echo -ne "[EMAIL PROTECTED]:${PWD/$HOME/[EMAIL PROTECTED]:${PWD/$HOME/~}\033\134\033"' ;; Instead of a nice coloured prompt I get: [EMAIL PROTECTED]:~$ The text I e