diff options
| -rw-r--r-- | mkshrc | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -588,6 +588,8 @@ SHELL_CONFIG=".mkshrc" PRELOAD="$HOME/${SHELL_CONFIG}.pre" LOCAL="$HOME/${SHELL_CONFIG}.local" UPDATE_URL="https://www.rygel.us/etc/" +BASH_ROOT_SHELL_COLOR="[1;31m" +BASH_SHELL_COLOR="[38;5;208m" FANCY_PROMPT=1 COLOR=1 @@ -656,6 +658,20 @@ else [ $SHELL = "/bin/sh" ] && set_super_basic_prompt + # Set a prompt for bash + if [ $SHELL = "/usr/local/bin/bash" ] || \ + [ $SHELL = "/usr/bin/bash" ] || \ + [ $SHELL = "/bin/bash" ] ; then + + NOCOLOR=$'\033[0m' + + if [ `id -u` -eq 0 ] ; then + export PS1=$BASH_ROOT_SHELL_COLOR"[\u@\h \w]\$ "$NOCOLOR + else + export PS1=$BASH_SHELL_COLOR"[\u@\h \w]\$ "$NOCOLOR + fi + fi + if [ $COLOR -eq 1 ] ; then colormanpages setcolorterminal |
