Overwrite PROMPT only if it's set to the built-in default

https://bugzilla.redhat.com/show_bug.cgi?id=2026749
This commit is contained in:
Debarshi Ray 2021-11-25 19:09:23 +01:00
parent 210b8657cd
commit 2055169831
2 changed files with 5 additions and 2 deletions

View File

@ -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 <rishi@fedoraproject.org> - 5.8-7
- Overwrite PROMPT only if it's set to the built-in default (#2026749)
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

View File

@ -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