- Tweak /etc/zshrc to source /etc/profile.d/*.sh in ksh compat. mode

- Resolves: rhbz#430665
This commit is contained in:
James Antill 2008-01-31 06:26:00 +00:00
parent 3e4841cabd
commit 85380af649
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@
Summary: A powerful interactive shell Summary: A powerful interactive shell
Name: zsh Name: zsh
Version: 4.3.4 Version: 4.3.4
Release: 5%{?dist} Release: 6%{?dist}
License: BSD License: BSD
URL: http://zsh.sunsite.dk/ URL: http://zsh.sunsite.dk/
Group: System Environment/Shells Group: System Environment/Shells
@ -152,6 +152,10 @@ fi
%doc Doc/*.html %doc Doc/*.html
%changelog %changelog
* Thu Jan 31 2008 James Antill <james@fedoraproject.org> - 4.3.4-6
- Tweak /etc/zshrc to source /etc/profile.d/*.sh in ksh compat. mode
- Resolves: rhbz#430665
* Mon Nov 3 2007 James Antill <jantill@redhat.com> - 4.3.4-5 * Mon Nov 3 2007 James Antill <jantill@redhat.com> - 4.3.4-5
- Fix 8bit chars in prompts. - Fix 8bit chars in prompts.
- Resolves: 375211 - Resolves: 375211

View File

@ -15,6 +15,12 @@ PROMPT='[%n@%m]%~%# ' # default prompt
# bindkey -e # emacs key bindings # bindkey -e # emacs key bindings
bindkey ' ' magic-space # also do history expansion on space bindkey ' ' magic-space # also do history expansion on space
{
# Make the *.sh things happier, and have possible ~/.zshenv options like
# NOMATCH ignored.
emulate -L ksh
# from bashrc, with zsh fixes # from bashrc, with zsh fixes
if [[ ! -o login ]]; then # We're not a login shell if [[ ! -o login ]]; then # We're not a login shell
for i in /etc/profile.d/*.sh; do for i in /etc/profile.d/*.sh; do
@ -24,3 +30,4 @@ if [[ ! -o login ]]; then # We're not a login shell
done done
unset i unset i
fi fi
}