Guest User

Untitled

a guest
Feb 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # colored prompt, with git support
  2. PS1='[\[\033[38m\]\u@\h \[\033[94m\]\W\[\033[95m\]$(__git_ps1)\[\033[37m\]]$\[\033[00m\] '
  3.  
  4. # If this is an xterm set the title to user@host:dir
  5. case "$TERM" in
  6. xterm*|rxvt*)
  7. PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%.local}: ${PWD/$HOME/~}\007"'
  8. ;;
  9. *)
  10. ;;
  11. esac
Add Comment
Please, Sign In to add comment