Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1.  
  2. # uncomment for a colored prompt, if the terminal has the capability; turned
  3. # off by default to not distract the user: the focus in a terminal window
  4. # should be on the output of commands, not on the prompt
  5. #force_color_prompt=yes
  6.  
  7. if [ -n "$force_color_prompt" ]; then
  8. if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
  9. # We have color support; assume it's compliant with Ecma-48
  10. # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
  11. # a case would tend to support setf rather than setaf.)
  12. color_prompt=yes
  13. else
  14. color_prompt=
  15. fi
  16. fi
  17.  
  18. if [ "$color_prompt" = yes ]; then
  19. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  20. else
  21. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  22. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement