From 0818aa18690aa202f2c6683771944dece47488c7 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Mon, 13 Aug 2012 16:16:47 +0200 Subject: [PATCH] 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. --- liquidprompt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liquidprompt b/liquidprompt index 4f99ed3..f5ca9dd 100755 --- a/liquidprompt +++ b/liquidprompt @@ -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