Update plugins to new specification for wish_append

This commit is contained in:
Ceda EI 2019-12-15 22:01:29 +05:30
parent eb7f3a6aa3
commit b389774a50
3 changed files with 4 additions and 4 deletions

View File

@ -12,5 +12,5 @@ function wish_hostname_set_colors() {
} }
function wish_hostname_main() { function wish_hostname_main() {
wish_append $WISH_HOSTNAME_BG $WISH_HOSTNAME_FG " \h " wish_append $WISH_HOSTNAME_BG $WISH_HOSTNAME_FG " $HOSTNAME "
} }

View File

@ -14,9 +14,9 @@ function wish_path_set_colors() {
function wish_path_main() { function wish_path_main() {
if [[ -w $PWD ]]; then if [[ -w $PWD ]]; then
local path=" \w " local path=" ${PWD/$HOME/\~} "
else else
local path=" \w$WISH_PATH_NO_WRITE_SUFFIX " local path=" ${PWD/$HOME/\~}$WISH_PATH_NO_WRITE_SUFFIX "
fi fi
wish_append $WISH_PATH_BG $WISH_PATH_FG "$path" wish_append $WISH_PATH_BG $WISH_PATH_FG "$path"
} }

View File

@ -12,5 +12,5 @@ function wish_username_set_colors() {
} }
function wish_username_main() { function wish_username_main() {
wish_append $WISH_USERNAME_BG $WISH_USERNAME_FG " \u " wish_append $WISH_USERNAME_BG $WISH_USERNAME_FG " $USER "
} }