From 20551698318de1610f5763425b63713204281ebd Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 25 Nov 2021 19:09:23 +0100 Subject: [PATCH] Overwrite PROMPT only if it's set to the built-in default https://bugzilla.redhat.com/show_bug.cgi?id=2026749 --- zsh.spec | 5 ++++- zshrc.rhs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/zsh.spec b/zsh.spec index ba8dd75..c03537f 100644 --- a/zsh.spec +++ b/zsh.spec @@ -1,7 +1,7 @@ Summary: Powerful interactive shell Name: zsh Version: 5.8 -Release: 6%{?dist} +Release: 7%{?dist} License: MIT URL: http://zsh.sourceforge.net/ Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz @@ -158,6 +158,9 @@ fi %doc Doc/*.html %changelog +* Thu Nov 25 2021 Debarshi Ray - 5.8-7 +- Overwrite PROMPT only if it's set to the built-in default (#2026749) + * Fri Jul 23 2021 Fedora Release Engineering - 5.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/zshrc.rhs b/zshrc.rhs index 5b3b92a..82dc213 100644 --- a/zshrc.rhs +++ b/zshrc.rhs @@ -8,7 +8,7 @@ #setenv() { export $1=$2 } # csh compatibility # Set prompts -PROMPT='[%n@%m]%~%# ' # default prompt +[[ "$PROMPT" = "%m%# " ]] && PROMPT='[%n@%m]%~%# ' # default prompt #RPROMPT=' %~' # prompt for right side of screen # bindkey -v # vi key bindings