mirror of https://gitlab.com/ceda_ei/wish
Update plugins to new specification for wish_append
This commit is contained in:
parent
eb7f3a6aa3
commit
b389774a50
|
@ -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 "
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 "
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue