Re: bash prompt update lagging

2009-11-17 Thread Michael P. Soulier
On 16/11/09 Polytropon said: Your PS1 seems to include ${SHORT_PWD}, a variable. It seems that it is not updated immediately after the cd command. Yeah, looks like it. Works on linux though... By the way, this is bash-3.2.25 on FreeBSD/x86 7. bash-4.0.33_2 on x86 6.3. Is this what you've

bash prompt update lagging

2009-11-15 Thread Michael P. Soulier
Hi, I use the same bash config on Linux, FreeBSD and Cygwin, for the most part, and I just noticed that on my FreeBSD system the prompt is updating one command too late. r...@kanga:/root$ pwd /home/msoulier r...@kanga:~$ cd /root r...@kanga:~$ pwd /root r...@kanga:/root$ As you can see, the

Re: bash prompt update lagging

2009-11-15 Thread Polytropon
On Sun, 15 Nov 2009 18:14:25 -0500, Michael P. Soulier msoul...@digitaltorque.ca wrote: \[\033[1;32m\]\[\033[0;36m\]\u\[\033[1;32...@\[\033[0;36m\]\h\[\033[1;32m\]:\[\033[0;37m\]${SHORT_PWD}\[\033[1;32m\]$\[\033[0;37m\] I'm wondering if this is a bash bug on bsd, or if I'm doing something

Re: Bash prompt

2005-07-18 Thread Aaron Peterson
On 7/17/05, Alex Yarmol [EMAIL PROTECTED] wrote: How I can chage my bash prompt to this: [EMAIL PROTECTED] directory-name(e. g. alex for /usr/home/alex)]$ I assume that I need to do that: export PS1='[EMAIL PROTECTED] \(here i don't know what to do, i assume, that I need to write \p

Bash prompt

2005-07-17 Thread Alex Yarmol
Hi, dear FreeBSD developers etc. :) I have a question. How I can chage my bash prompt to this: [EMAIL PROTECTED] directory-name(e. g. alex for /usr/home/alex)]$ I assume that I need to do that: export PS1='[EMAIL PROTECTED] \(here i don't know what to do, i assume, that I need to write \p

Re: Bash prompt

2005-07-17 Thread Daniel Gerzo
Hi Alex, Sunday, July 17, 2005, 11:30:38 PM, you wrote: How I can chage my bash prompt to this: [EMAIL PROTECTED] directory-name(e. g. alex for /usr/home/alex)]$ I assume that I need to do that: export PS1='[EMAIL PROTECTED] \(here i don't know what to do, i assume, that I need to write

Re: Bash prompt

2005-07-17 Thread Giorgos Keramidas
On 2005-07-18 00:30, Alex Yarmol [EMAIL PROTECTED] wrote: Hi, dear FreeBSD developers etc. :) I have a question. How I can chage my bash prompt to this: [EMAIL PROTECTED] directory-name(e. g. alex for /usr/home/alex)]$ I assume that I need to do that: export PS1='[EMAIL PROTECTED

A question about my bash prompt

2005-04-16 Thread P.B.S.
First, please pardon me for my bad English. So, this is my prompt: PS1='(\[$(tput md)\]\t \w\[$(tput me)\]) $(echo $?) \$ ' I am not really versed in bash, but I surmise that echo $? should be the exit code of the most recently executed command. In effect, it is always zero, even when I'm