From 43bd5ac8b20f0f846da6c067eba4058b86daa0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 13 Oct 2022 15:25:21 +0200 Subject: zshrc.d/prompt: fix right prompt --- zshrc.d/prompt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zshrc.d/prompt') diff --git a/zshrc.d/prompt b/zshrc.d/prompt index ab100ab..b2e155b 100644 --- a/zshrc.d/prompt +++ b/zshrc.d/prompt @@ -1,7 +1,7 @@ # vim: ft=zsh # Disable default prompt -prompt off +command -v prompt >/dev/null && prompt off if [ "$UID" -eq 0 ]; then NCOLOR="red" @@ -25,6 +25,7 @@ for gitprompt in "/usr/share/git/git-prompt.sh" "/run/current-system/sw/share/ba export GIT_PS1_SHOWUPSTREAM=y export GIT_PS1_DESCRIBE_STYLE="branch" RPROMPT='$(__git_ps1 "%s")' + setopt promptsubst break fi done -- cgit v1.2.3