[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cd won't change the prompt if the command is typed in the vi editor
From: |
Greg Wooledge |
Subject: |
Re: cd won't change the prompt if the command is typed in the vi editor (vi mode). |
Date: |
Mon, 13 May 2013 08:31:20 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Sun, May 12, 2013 at 05:50:18PM -0500, Peng Yu wrote:
> set -o vi.
>
> Then I type v to enter the vi editor. In the vi editor, I type 'cd
> /tmp'. Then, I get the following screen output. Notice that the prompt
> does not change immediately after the cd command. Could anybody
> reproduce this behavior? Thanks.
>
> ~$
> cd /tmp
> ~$ echo $PWD
> /tmp
> /tmp$
Yes, this happens to me as well running bash-4.3-alpha. (You left out
the part where you put \w into your PS1 variable, but I assumed it.)