[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash escape character troubles
From: |
donothing successfully |
Subject: |
Re: Bash escape character troubles |
Date: |
Sun, 15 Jul 2007 23:32:52 +0100 |
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.
- 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 <=
- 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