3 ms·
for example, in .bashrc on osx: RED=$(tput setaf 1) NORMAL=$(tput sgr0) PS1="\[${RED}\]PROD \[${NORMAL}\]\W\$ " produces prompt PROD ~$ <-- prod in
by x0x0 10y ago
for example, in .bashrc on osx:
RED=$(tput setaf 1)
NORMAL=$(tput sgr0)
PS1="\[${RED}\]PROD \[${NORMAL}\]\W\$ "
produces prompt
PROD ~$ <-- prod in red, directory ~