- Austin, Tx
Highlights
- Pro
Pinned Loading
-
git branch bash terminal highlighting
git branch bash terminal highlighting 1PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
2parse_git_branch() {
3git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(git::\1)/'
4}
5export PS1="\[\033[01;34m\] \w \[\033[31m\]\$(parse_git_branch) \[\033[00m\]$\[\033[00m\] "
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.