Re: Problem with showing git status in bash

2018-03-01 Thread Simon Albrecht
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_

Re: Problem with showing git status in bash

2018-03-01 Thread Joram
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 __

Re: Problem with showing git status in bash

2018-03-01 Thread Federico Bruni
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

Problem with showing git status in bash

2018-03-01 Thread Simon Albrecht
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.