kingspp/RPi-AUI

Adding colour to pacman

Closed this issue · 2 comments

Uncomment #Color in /etc/pacman.conf

You can also try adding colour to bash by:

source ~/.bashrc

And append the following to ~/.bashrc by:

echo 'PS1="\[\033[01;37m\]\$? \$(if [[ \$? == 0 ]]; then echo \"\[\033[01;32m\];)\"; else echo \"\[\033[01;31m\];(\"; fi) $(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;32m\]\u@\h'; fi)\[\033[01;34m\] \W \$\[\033[00m\] "' >> ~/.bashrc

Added colour to Pacman. There is an error in the bash statement