Created
March 14, 2019 08:41
-
-
Save aduzsardi/54b812feda5e5de11f7e67f794aaff7e to your computer and use it in GitHub Desktop.
bash prompt
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
export PS1='\[\e[1;33m\]\u\[\e[1;37m\]@\[\e[1;32m\]\h\[\e[1;37m\]: \[\e[1;31m\]\w\[\e[0;36m\]$(__git_ps1 "\e[37m (\e[36m%s ⎇ \e[37m)\e[0m")\n\[\e[1;36m\]└─\$ ▶ \[\e[0m\]' | |
# if you don't have __git_ps1 (git-prompt.sh) , you can download it from here https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh , and source it in your bash init files (ie. .bashrc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment