Revert "Update plugins to new specification for wish_append"

This reverts commit b389774a50.
Since PS1 escape codes are allowed once more, this commit is no longer
needed.
This commit is contained in:
Ceda EI 2019-12-25 20:25:20 +05:30
parent 919b102a43
commit 30ebb302b8
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 " $HOSTNAME " wish_append $WISH_HOSTNAME_BG $WISH_HOSTNAME_FG " \h "
} }

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=" ${PWD/$HOME/\~} " local path=" \w "
else else
local path=" ${PWD/$HOME/\~}$WISH_PATH_NO_WRITE_SUFFIX " local path=" \w$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 " $USER " wish_append $WISH_USERNAME_BG $WISH_USERNAME_FG " \u "
} }