Created
September 1, 2021 23:40
-
-
Save hotta/147e9eb5ddc742d229553a4cf2d94fff to your computer and use it in GitHub Desktop.
Small TIPS on CentOS
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
# Enable git-bash-prompt | |
if [ ! -d $HOME/bash-git-prompt ]; then | |
git clone https://github.com/magicmonty/bash-git-prompt.git | |
fi | |
if [ -f "$HOME/bash-git-prompt/gitprompt.sh" ]; then | |
GIT_PROMPT_ONLY_IN_REPO=1 | |
source $HOME/bash-git-prompt/gitprompt.sh | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment