[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: Bash escape character troubles
From: |
Troy Curtis Jr |
Subject: |
Fwd: Bash escape character troubles |
Date: |
Sun, 15 Jul 2007 22:43:10 -0500 |
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 <address@hidden>
Date: Jul 15, 2007 10:41 PM
Subject: Re: Bash escape character troubles
To: donothing successfully <address@hidden>
On 7/15/07, donothing successfully <address@hidden> 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
address@hidden
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/)
- Bash escape character troubles, Troy Curtis Jr, 2007/07/15
- Re: Bash escape character troubles, Jean Jordaan, 2007/07/15
- Re: Bash escape character troubles, donothing successfully, 2007/07/15
- Message not available
- Fwd: Bash escape character troubles,
Troy Curtis Jr <=
- Re: Bash escape character troubles, Jean Jordaan, 2007/07/16
- Re: Bash escape character troubles, donothing successfully, 2007/07/16
- Re: Bash escape character troubles, Troy Curtis Jr, 2007/07/16
- Re: Bash escape character troubles, Jean Jordaan, 2007/07/17
- Re: Bash escape character troubles, Jean Jordaan, 2007/07/17
- Re: Bash escape character troubles, donothing successfully, 2007/07/17
Re: Bash escape character troubles, Peder Stray, 2007/07/17