From b389774a5062342aaee11588e1754005c8268789 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sun, 15 Dec 2019 22:01:29 +0530 Subject: [PATCH] Update plugins to new specification for wish_append --- 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 5e4ced3..c1ccea6 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 " \h " + wish_append $WISH_HOSTNAME_BG $WISH_HOSTNAME_FG " $HOSTNAME " } diff --git a/plugins/path.sh b/plugins/path.sh index 8e3329d..cce71ca 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=" \w " + local path=" ${PWD/$HOME/\~} " else - local path=" \w$WISH_PATH_NO_WRITE_SUFFIX " + local path=" ${PWD/$HOME/\~}$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 617410a..fa0e65b 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 " \u " + wish_append $WISH_USERNAME_BG $WISH_USERNAME_FG " $USER " }