User Tools

Site Tools


ps1-colors

Gentoo style PS1

       <code>if [[ ${EUID} == 0 ]] ; then
              PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
      else
              PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
      fi
      </code>
ps1-colors.txt · Keista: 2014/08/05 13:46 (redaguoti papildomomis priemonėmis)