On 01.03.2018 20:59, Joram wrote:
The git-part you want to add is just the '$(__git_ps1)' part. So you can
use the original $PS1 and add that part if you don't want other changes.
Thanks, that’s what I did, ending up with this monster:
export PS1="\[\e]0;\u@\h:
\w\a\]${debian_chroot:+($debian_
Hi Simon,
you can also look at the variable before changing it:
echo $PS1
You'll probably find the colors there like '\[\033[00m\]'.
The git-part you want to add is just the '$(__git_ps1)' part. So you can
use the original $PS1 and add that part if you don't want other changes.
Best,
Joram
__
Il giorno gio 1 mar 2018 alle 17:01, Simon Albrecht
<"simon.albrecht"@mail.de> ha scritto:
Hello everybody,
I just applied the suggestion from the CG to add
export PS1="\u@\h \w\$(__git_ps1)$ "
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWUPSTR
Hello everybody,
I just applied the suggestion from the CG to add
export PS1="\u@\h \w\$(__git_ps1)$ "
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWUPSTREAM=auto
to ~/.bashrc in order to show the status of a git repository in the
command prompt.