BASH 43
Bashrc - Color Prompt By micha on 12th October 2021 09:15:08 AM
  1. # Regular style: user@host:/path$
  2. ## Root [red]root[white]@[green]host[white]:[cyan]path:
  3. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[01;37m\]@\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
  4.  
  5. ## Users [green]user[white]@[green]host[white]:[cyan]path:
  6. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[01;39m\]@\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
  7.  
  8.  
  9. ## Prompt Colors
  10. BGREEN='\[\033[1;32m\]'
  11. GREEN='\[\033[0;32m\]'
  12. BRED='\[\033[1;31m\]'
  13. RED='\[\033[0;31m\]'
  14. BBLUE='\[\033[1;34m\]'
  15. BLUE='\[\033[0;34m\]'
  16. NORMAL='\[\033[00m\]'
  17.  
  18. # Path in front of user: (/path) user@host: $
  19. PS1="${RED}(${NORMAL}\w${RED}) ${RED}\u${BBLUE}@${NORMAL}\h: ${RED}\$ ${NORMAL}"
  20.  
  21. PS1="${RED}(${NORMAL}\w${RED}) ${GREEN}\u${BBLUE}@${NORMAL}\h: ${RED}\$ ${NORMAL}"
  22.  
  23.  
  24. # Directory colors (cyan)
  25. LS_COLORS=$LS_COLORS:'di=0;36:' ; export LS_COLORS
  26.  
  27.  
  28. https://misc.flogisoft.com/bash/tip_colors_and_formatting

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.