export PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/')\$"
Created
January 29, 2018 20:35
-
-
Save lalyos/cc9e6963a8b74fa15dba848c80381caf to your computer and use it in GitHub Desktop.
bash prompt PS1 with actual git branch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment