Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. which git
  2. ls /usr/local/etc/bash_completion.d/
  3. mdfind git-completion.bash
  4. mdfind git-prompt.sh
  5.  
  6. vi ~/.bashrc
  7.  
  8. ```
  9. source /usr/local/etc/bash_completion.d/git-prompt.sh
  10. source /usr/local/etc/bash_completion.d/git-completion.bash
  11. GIT_PS1_SHOWDIRTYSTATE=true
  12. export PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\n\$ '
  13. ```
  14.  
  15. vi ~/.bash_profile
  16.  
  17. ```
  18. source ~/.bashrc
  19. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement