[Breaking] Update custom_text to better variable namespacing.

This commit is contained in:
Ceda EI 2019-12-31 11:22:48 +05:30
parent aabc6ebfd6
commit 9a2d831432
1 changed files with 3 additions and 3 deletions

View File

@ -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"
}