Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. _git() {
  2. git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'
  3. }
  4.  
  5. if [ "$color_prompt" = yes ]; then
  6. PS1='\n${debian_chroot:+($debian_chroot)}\l: \[\033[01;37m\]\h\[\033[00m\] @ \[\033[01;33m\]\u\[\033[0m\] -> \[\033[01;36m\]\w\[\033[00m\] [\t] [\j] \n\[\033[01;35m\]$(_git)\[\033[00m\]\$ '
  7. # PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  8. else
  9. PS1='\n${debian_chroot:+($debian_chroot)}\l: \h @ \u -> \w [\t] [\j] \n$(_git)\$ '
  10. # PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement