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'
On Sun, 15 Nov 2009 18:14:25 -0500, "Michael P. Soulier"
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 wrong.
Your PS1 seems
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 pro
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
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 tha
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 t
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
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