Merge pull request #146 from JayXon/patch-2

Support for advanced usage in custom message
This commit is contained in:
Dawid Kurek
2016-10-29 08:32:40 +02:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -393,7 +393,9 @@ prompt_custom() {
return
fi
prompt_segment $BULLETTRAIN_CUSTOM_BG $BULLETTRAIN_CUSTOM_FG "${BULLETTRAIN_CUSTOM_MSG}"
local custom_msg
eval custom_msg=$BULLETTRAIN_CUSTOM_MSG
[[ -n "${custom_msg}" ]] && prompt_segment $BULLETTRAIN_CUSTOM_BG $BULLETTRAIN_CUSTOM_FG "${custom_msg}"
}
# Git