SHARE
TWEET

Untitled

JamcraveN Dec 17th, 2018 867 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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top