Skip to content

Instantly share code, notes, and snippets.

@wes5510
Last active June 12, 2019 05:29
Show Gist options
  • Save wes5510/6dab4d074c87b27c2205a92eb127a9d0 to your computer and use it in GitHub Desktop.
Save wes5510/6dab4d074c87b27c2205a92eb127a9d0 to your computer and use it in GitHub Desktop.
script to set bash prompt
#!/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