Put this line into your ~/.shrc:
export PS1="$(echo -e "\033[31m$(whoami)\033[00m@$(hostname -s): \$PWD $") "
Change coloring as you wish by tuning \e[31m and \e[00m parts.
For color codes and further information see the link attached.
- Log in to post comments