Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff

December, 2011

Color Bash Prompt on Ubuntu and Debian

Ubuntu Green Prompt for your user Edit ”~/.bashrc” and change: #force_color_prompt=yes to: force_color_prompt=yes To change it for all new users make the same in ”/etc/skel/.bashrc”. Red Prompt for root Edit ”/root/.bashrc” and change ”force_color_prompt=yes” like for your user. Now change the color to red. Search this line: PS1=’${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ‘ and change it to: PS1=’${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ‘ […]

,