- Fix login shell detection.

- Resolves: 244684
This commit is contained in:
James Antill 2007-10-11 14:04:00 +00:00
parent 68edd3c18e
commit 2fc798cf87
2 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,7 @@
Summary: A powerful interactive shell
Name: zsh
Version: 4.3.4
Release: 3%{?dist}
Release: 4%{?dist}
License: BSD
URL: http://zsh.sunsite.dk/
Group: System Environment/Shells
@ -150,6 +150,10 @@ fi
%doc Doc/*.html
%changelog
* Thu Oct 11 2007 James Antill <jantill@redhat.com> - 4.3.4-4
- Fix login shell detection.
- Resolves: 244684
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 4.3.4-3
- BuildRequire gawk.

View File

@ -15,8 +15,8 @@ PROMPT='[%n@%m]%~%# ' # default prompt
# bindkey -e # emacs key bindings
bindkey ' ' magic-space # also do history expansion on space
# from bashrc
if [ "x$SHLVL" != "x1" ]; then # We're not a login shell
# from bashrc, with zsh fixes
if [[ ! -o login ]]; then # We're not a login shell
for i in /etc/profile.d/*.sh; do
if [ -r "$i" ]; then
. $i