Last active
June 12, 2019 05:29
-
-
Save wes5510/6dab4d074c87b27c2205a92eb127a9d0 to your computer and use it in GitHub Desktop.
script to set bash prompt
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
#!/bin/bash | |
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1 | |
echo -e "\nif [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then\n\tGIT_PROMPT_ONLY_IN_REPO=1\n\tsource $HOME/.bash-git-prompt/gitprompt.sh\nfi\n" >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment