From 9a2d8314326bafad6aa6f25cbff2d98444f09fe4 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Tue, 31 Dec 2019 11:22:48 +0530 Subject: [PATCH] [Breaking] Update custom_text to better variable namespacing. --- plugins/custom_text.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/custom_text.sh b/plugins/custom_text.sh index eb0acbc..dc5ffaf 100644 --- a/plugins/custom_text.sh +++ b/plugins/custom_text.sh @@ -9,10 +9,10 @@ function wish_custom_text_end() { function wish_custom_text_set_colors() { WISH_CUSTOM_TEXT_FG=${WISH_CUSTOM_TEXT_FG:-$WISH_DEFAULT_FG} WISH_CUSTOM_TEXT_BG=${WISH_CUSTOM_TEXT_BG:-$WISH_DEFAULT_BG} - local default_text='To set custom text here, add WISH_CUSTOM_TEXT="your text" in ~/.bashrc' - WISH_CUSTOM_TEXT=${WISH_CUSTOM_TEXT:-$default_text} + local default_text='To set custom text here, add text="your text" in your config' + WISH_CUSTOM_TEXT_TEXT=${WISH_CUSTOM_TEXT:-$default_text} } function wish_custom_text_main() { - wish_append $WISH_CUSTOM_TEXT_BG $WISH_CUSTOM_TEXT_FG "$WISH_CUSTOM_TEXT" + wish_append $WISH_CUSTOM_TEXT_BG $WISH_CUSTOM_TEXT_FG "$WISH_CUSTOM_TEXT_TEXT" }