I see that I need to do the reply all bit on this mailing list too....I can never get used to that! Here's my response to "doonothing"
---------- Forwarded message ---------- From: Troy Curtis Jr <[EMAIL PROTECTED]> Date: Jul 15, 2007 10:41 PM Subject: Re: Bash escape character troubles To: donothing successfully <[EMAIL PROTECTED]> On 7/15/07, donothing successfully <[EMAIL PROTECTED]> wrote:
Hi Jean/Troy Why do both use PROMPT_COMMAND to output your prompts? I thought it was more conventional to set PS1, there are escape characters to expand to hostname, date, etc etc. I think this might be more efficient, and make things more simple for you. Here's my PS1 for an example: harry2~/Mail>echo "$PS1" \[\033[1;31m\]\u\[\033[0;32m\]\l\[\033[1;34m\]\w>\[\033[0m\] You can embed commands too. Have you read this? http://tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html I recall finding that very useful in constructing my prompt. Also I set hardstatus in .screenrc to set the window title. HTH, Harry. _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users
Hmm, perhaps that would get me something. I can't speak to Jean's reasoning but mine as so that I could execute commands to optionally output the hostname. The way I have it set up is that it will not put the hostname in the title on my main machine but if I have a login to my other machinces, the hostname shows up in the "tab" title. It gives it that little bit extra information. However, just a directory name would be better than what I have now, which is "Thanks for flying VIM" (I set up vim to put the filename in the title, very nice, but without a working BASH escape sequence to over write it it sticks around forever!) -- "Beware of spyware. If you can, use the Firefox browser." - USA Today Download now at http://getfirefox.com Registered Linux User #354814 ( http://counter.li.org/) -- "Beware of spyware. If you can, use the Firefox browser." - USA Today Download now at http://getfirefox.com Registered Linux User #354814 ( http://counter.li.org/) _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users