cvsdist abdd31
#
cvsdist abdd31
# /etc/zshrc is sourced in interactive shells.  It
cvsdist abdd31
# should contain commands to set up aliases, functions,
cvsdist abdd31
# options, key bindings, etc.
cvsdist abdd31
#
cvsdist abdd31
cvsdist b24462
## shell functions
cvsdist b24462
#setenv() { export $1=$2 }  # csh compatibility
cvsdist abdd31
cvsdist abdd31
# Set prompts
cvsdist 373df7
PROMPT='[%n@%m]%~%# '    # default prompt
cvsdist abdd31
#RPROMPT=' %~'     # prompt for right side of screen
cvsdist abdd31
cvsdist abdd31
# bindkey -v             # vi key bindings
cvsdist 8075d0
# bindkey -e             # emacs key bindings
cvsdist 538cfb
bindkey ' ' magic-space  # also do history expansion on space
cvsdist 3de397
James Antill 87e381
_src_etc_profile_d()
James Antill 85380a
{
James Antill 87e381
    #  Make the *.sh things happier, and have possible ~/.zshenv options like
James Antill 87e381
    # NOMATCH ignored.
James Antill 87e381
    emulate -L ksh
James Antill 87e381
James Antill 87e381
James Antill 87e381
    # from bashrc, with zsh fixes
James Antill 87e381
    if [[ ! -o login ]]; then # We're not a login shell
James Antill 87e381
        for i in /etc/profile.d/*.sh; do
James Antill 87e381
	    if [ -r "$i" ]; then
James Antill 87e381
	        . $i
James Antill 87e381
	    fi
James Antill 87e381
        done
James Antill 87e381
        unset i
James Antill 87e381
    fi
James Antill 85380a
}
James Antill 87e381
_src_etc_profile_d
James Antill 87e381
James Antill 87e381
unset -f _src_etc_profile_d
James Antill 87e381