Advertisement
JamcraveN

Untitled

Dec 17th, 2018
4,718
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function parse_git_branch_and_add_brackets {
  2.         git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/'
  3. }
  4. PS1="\u@\h:\w\[\033[0;32m\]\$(parse_git_branch_and_add_brackets)\[\033[0m\]\$ "
  5.  
  6. export PATH=/usr/local/Trolltech/Qt-4.8.2/bin:$PATH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement