ubuntu:bash-color
Раскраска bash консоли
if [ -n "${SSH_TTY}"]
then
export PS1='\[\033[01;32m\][\u@\h]\[\033[01;34m\]\w\$>\[\033[00m\]'
elif [ ${EUID} == 0 ]; then
export PS1='\[\033[01;31m\][\u@\h]\[\033[01;34m\]\w\$>\[\033[00m\]'
else
export PS1='\[\033[01;35m\][\u@\h]\[\033[01;34m\]\w\$>\[\033[00m\]'
fi
ubuntu/bash-color.txt · Последнее изменение: 2017/03/23 21:59 — 127.0.0.1
