diff options
author | Karel Kočí <cynerd@email.cz> | 2022-10-13 15:25:21 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-10-13 15:25:21 +0200 |
commit | 43bd5ac8b20f0f846da6c067eba4058b86daa0fb (patch) | |
tree | 31df754e5cbcbb9ad2978e2929ee69ec3148fad8 | |
parent | 1f26a16decff6288f6922bca0914e3fb966e537b (diff) | |
download | shellrc-43bd5ac8b20f0f846da6c067eba4058b86daa0fb.tar.gz shellrc-43bd5ac8b20f0f846da6c067eba4058b86daa0fb.tar.bz2 shellrc-43bd5ac8b20f0f846da6c067eba4058b86daa0fb.zip |
zshrc.d/prompt: fix right prompt
-rw-r--r-- | zshrc.d/prompt | 3 |
1 files changed, 2 insertions, 1 deletions
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 |