Last active
October 1, 2020 15:48
-
-
Save qcoumes/5c3250d32f3a4de00ce09ebc0e74ff13 to your computer and use it in GitHub Desktop.
Change prompt to '[host] [time] [pwd] $' and '[time] [pwd] ([branch]) $' when inside a git repository
This file contains 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
curl -L https://gist.githubusercontent.com/qcoumes/631aafe1951910c623dde57bede4f7b4/raw/7021c5daf3a06a24d9f2fc4da554af84a1719cda/bash_git > ~/.bash_git | |
source ~/.bash_git | |
echo "source ~/.bash_git" >> ~/.bashrc | |
echo "export PS1='\[\033[0;35m\]\h \[\033[0;33m\]\t \[\033[0;36m\]\w\[\033[0;1;91m\]\$(__git_ps1)\[\033[0;32m\] \$\[\033[0;0m\] '" >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment