[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with showing git status in bash
From: |
Simon Albrecht |
Subject: |
Re: Problem with showing git status in bash |
Date: |
Thu, 1 Mar 2018 22:18:54 +0100 |
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;address@hidden:
\w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;address@hidden:\[\033[01;34m\]\w\[\033[00m\]\$(__git_ps1)$
"
That’s the Ubuntu 16 sugar I guess…
Best, Simon