Forums

After updating website, bash console prompt is incorrect

After using:

 pa_autoconfigure_django.py --python=3.8 https://github.com/charlesknell/my-first-blog.git --nuke

to reload my website, my bash console prompt is incorrect. The updated website works fine. I have tried deleting and adding new bash consoles with the same result. Each time, the bash console prompt is (incorrectly) set as

<current time> ~ $

instead of using the prompt specified in ".bashrc". Any suggestions for correcting this would be appreciated.

What do you have in .bashrc to set your prompt?

Here is my .bashrc content:

13:49 ~ $ more .bashrc
# Load up standard site-wide settings.
source /etc/bashrc
#remove duplicate entries from history
export HISTCONTROL=ignoreboth
# Show current git branch in prompt.
function parse_git_branch {
  git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
LIGHT_GREEN="\[\033[1;32m\]"
LIGHT_GRAY="\[\033[0;37m\]"
PS1="$LIGHT_GRAY\$(date +%H:%M) \w$YELLOW \$(parse_git_branch)$LIGHT_GREEN\$ $LIGHT_GRAY"
# Load virtualenvwrapper
source virtualenvwrapper.sh &> /dev/null
13:49 ~ $

Thanks for looking at this. Charles

That looks like the prompt that is specified in the .bashrc. What do you mean that it's incorrect?