From 30ebb302b8e01e8f9791b2595e8c98f74bca1c70 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Wed, 25 Dec 2019 20:25:20 +0530 Subject: [PATCH] Revert "Update plugins to new specification for wish_append" This reverts commit b389774a5062342aaee11588e1754005c8268789. Since PS1 escape codes are allowed once more, this commit is no longer needed. --- plugins/hostname.sh | 2 +- plugins/path.sh | 4 ++-- plugins/username.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/hostname.sh b/plugins/hostname.sh index c1ccea6..5e4ced3 100644 --- a/plugins/hostname.sh +++ b/plugins/hostname.sh @@ -12,5 +12,5 @@ function wish_hostname_set_colors() { } function wish_hostname_main() { - wish_append $WISH_HOSTNAME_BG $WISH_HOSTNAME_FG " $HOSTNAME " + wish_append $WISH_HOSTNAME_BG $WISH_HOSTNAME_FG " \h " } diff --git a/plugins/path.sh b/plugins/path.sh index cce71ca..8e3329d 100644 --- a/plugins/path.sh +++ b/plugins/path.sh @@ -14,9 +14,9 @@ function wish_path_set_colors() { function wish_path_main() { if [[ -w $PWD ]]; then - local path=" ${PWD/$HOME/\~} " + local path=" \w " else - local path=" ${PWD/$HOME/\~}$WISH_PATH_NO_WRITE_SUFFIX " + local path=" \w$WISH_PATH_NO_WRITE_SUFFIX " fi wish_append $WISH_PATH_BG $WISH_PATH_FG "$path" } diff --git a/plugins/username.sh b/plugins/username.sh index fa0e65b..617410a 100644 --- a/plugins/username.sh +++ b/plugins/username.sh @@ -12,5 +12,5 @@ function wish_username_set_colors() { } function wish_username_main() { - wish_append $WISH_USERNAME_BG $WISH_USERNAME_FG " $USER " + wish_append $WISH_USERNAME_BG $WISH_USERNAME_FG " \u " }