Warn if the shell is not supported

If the shell is not recognised as a supported ("bash" and "zsh" for now)
then a warning will be displayed in red.

For example on Mac OS X the shell process is named "-bash" (note the
first character) and is not yet recognised as a valid shell name.
This commit is contained in:
Ludovic Rousseau 2012-08-13 16:16:47 +02:00
parent 4c023a2a94
commit 0818aa1869

View File

@ -884,6 +884,8 @@ prompt_on()
LP_OLD_PROMPT_COMMAND="$PROMPT_COMMAND"
elif [[ "$WORKING_SHELL" == "zsh" ]]; then
LP_OLD_PROMPT_COMMAND="$precmd"
else
echo "${RED}Shell $WORKING_SHELL not supported $NO_COL"
fi
fi
if [[ "$WORKING_SHELL" == "bash" ]]; then