SHARE
TWEET

Untitled

a guest Jun 26th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. parse_git_branch() {
  2.      git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/'
  3. }
  4.  
  5. PS1="\[\e[36m\]┌\[\e[m\]\[\e[36m\][\[\e[m\]\u\[\e[33m\]@\[\e[m\]\h\[\e[36m\]]\[\e[36m\]─[\[\e[m\]BG: \j\[\e[36m\]]─[\[\e[m\]\A\[\e[36m\]|\[\e[m\]\D{%d-%m-%Y}\[\e[36m\]]\[\e[m\]\[\e[36m\]─[\[\e[m\]\#\[\e[36m\]]─\[\e[33m\$(parse_git_branch)   \[\e[m\]\n\[\e[36m\]└\[\e[m\]\[\e[36m\][\[\e[m\]\w\[\e[36m\]]\[\e[m\]\[\e[36m\]-\[\e[36m\] \[\e[m\]"
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