Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function parse_git_branch {
  2. git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
  3. }
  4.  
  5. export PS1="\n${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \$(parse_git_branch) \[\033[01;34m\]\w\[\033[00m\] \nλ "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement