Setting up fancy prompt in Korn Shell (ksh)
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.
- Read more about Setting up fancy prompt in Korn Shell (ksh)
- Log in to post comments