2004-09-09 15:18:48 +00:00
|
|
|
#
|
|
|
|
# /etc/zshrc is sourced in interactive shells. It
|
|
|
|
# should contain commands to set up aliases, functions,
|
|
|
|
# options, key bindings, etc.
|
|
|
|
#
|
|
|
|
|
2004-09-09 15:21:32 +00:00
|
|
|
## shell functions
|
|
|
|
#setenv() { export $1=$2 } # csh compatibility
|
2004-09-09 15:18:48 +00:00
|
|
|
|
|
|
|
# Set prompts
|
2004-09-09 15:21:01 +00:00
|
|
|
PROMPT='[%n@%m]%~%# ' # default prompt
|
2004-09-09 15:18:48 +00:00
|
|
|
#RPROMPT=' %~' # prompt for right side of screen
|
|
|
|
|
|
|
|
# bindkey -v # vi key bindings
|
2004-09-09 15:19:53 +00:00
|
|
|
# bindkey -e # emacs key bindings
|
2004-09-09 15:19:24 +00:00
|
|
|
bindkey ' ' magic-space # also do history expansion on space
|
2004-09-09 15:21:37 +00:00
|
|
|
|
2008-01-31 06:26:00 +00:00
|
|
|
{
|
|
|
|
# Make the *.sh things happier, and have possible ~/.zshenv options like
|
|
|
|
# NOMATCH ignored.
|
|
|
|
emulate -L ksh
|
|
|
|
|
|
|
|
|
2007-10-11 14:04:00 +00:00
|
|
|
# from bashrc, with zsh fixes
|
|
|
|
if [[ ! -o login ]]; then # We're not a login shell
|
2004-09-09 15:21:37 +00:00
|
|
|
for i in /etc/profile.d/*.sh; do
|
|
|
|
if [ -r "$i" ]; then
|
|
|
|
. $i
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
unset i
|
|
|
|
fi
|
2008-01-31 06:26:00 +00:00
|
|
|
}
|