-
Notifications
You must be signed in to change notification settings - Fork 75
Prompt refuses to update when changing directories #14
Comments
Ended up stumbling upon a solution this morning. There's a bash variable called By placing this in my
Anything that I needed to update every time a new prompt appeared, I threw into that I don't know if the |
Weird. I noticed this happening myself while I was working on the README overhaul. Testing it again now, I can't get it to happen again. I'm fairly certain it's my crappy install procedure. I'll poke around some more and update the README if I find anything. |
Updated the instructions in 81b13b6. The problem seemed to be the recursive use of Try that. It should be fixed now :) |
I had the same issue. @xvzf: the updated instructions didn't help me. @Pewpewarrows: the |
That's what I get for not using bash :) I'll update the instructions later. |
Oh! I found a simpler way to do it. Just escape the dollar sign:
@vbajpai, @Pewpewarrows: can you try this way and let me know if it works? |
On Jul 14, 2011, at 8:05 PM, xvzf wrote: I have been doing that actually all this while. |
According to this page that should be working. Since it works for me in a bunch of different versions of bash, I'll settle on those instructions. |
As the title suggests, whenever I cd into a directory that has version control in it, my prompt never updates to reflect that. I've followed the Install instructions verbatim:
I then cd into any project directory covered by svn, git, or hg (I've tried all three). Just running the command correctly tells me any information:
However, my prompt still stays as
$
. If I wait to run theexport PS1="$(vcprompt) $PS1"
line until I'm in a project directory already, then the prompt is correctly updated to besvn:trunk $
. However, thatsvn:trunk
stays in the front frozen like that no matter what I cd into from that point on. So even moving to my home directory still showssvn:trunk $
as my prompt.This occurs both on my OSX and Ubuntu workstations. Both are running Python version 2.6.x. Both are using bash as the shell. To prevent any conflicts, I've made sure that the only line in my
.bash_profile
or.bashrc
has been adding~/bin
to my$PATH
.Do you have any idea what might be causing this?
The text was updated successfully, but these errors were encountered: