Guest User

Untitled

a guest
May 20th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #Just be careful. Safest to properly end color sequence, so instead of this
  2. #export PS1="\[\033[01;32m\]\u\[\033[00m\]\[\033[01;31m\]\$(git_br)\[\033[01;32m\]\[\033[00m\]:\[\033[01;36m\]\$(git_pwd)\[\033[00m\]\$ "
  3.  
  4. #do this
  5. USER_GREEN='\[\e[01;32m\]'
  6. #NO_COLOR='\[\e[00m\]'
  7. REPO_RED='\[\e[01;31m\]'
  8. PATH_BLUE='\[\e[01;36m\]'
  9. END_COLOR='\[\e[m\]'
  10.  
  11. PS1="${USER_GREEN}\u${END_COLOR}${REPO_RED}\$(git_br)${END_COLOR}:${PATH_BLUE}\$(git_pwd)${END_COLOR}$ "
Add Comment
Please, Sign In to add comment