Last active
July 9, 2022 15:14
-
-
Save rodrigoreis/7dd796d05d6682e995692be514830f3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function __git_ps1_custom() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| function __git_get_branch_name() { | |
| echo -ne "\033[0;35m$(__git_ps1_custom)\033[0m"; | |
| } | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_get_branch_name)\$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment