Guest User

Untitled

a guest
Apr 25th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # Show git branch in the prompt, additionally MSYSTEM in MSYS2.
  2.  
  3. if ! [ -x "$(command -v __git_ps1)" ]; then
  4. source git-prompt.sh
  5. fi
  6.  
  7. if [[ -z "${MSYSTEM}" ]]; then
  8. MSYSTEM_DISP=""
  9. else
  10. MSYSTEM_DISP=" ${MSYSTEM} "
  11. fi
  12.  
  13. export PS1='\n\e[92m\u\e[32m@\h\e[35m${MSYSTEM_DISP}\e[39m\w\e[93m`__git_ps1`\n\e[39m\$ '
Add Comment
Please, Sign In to add comment