|
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 |
|
|
cvsdist |
3de397 |
# from bashrc
|
|
cvsdist |
3de397 |
if [ "x$SHLVL" != "x1" ]; then # We're not a login shell
|
|
cvsdist |
3de397 |
for i in /etc/profile.d/*.sh; do
|
|
cvsdist |
3de397 |
if [ -r "$i" ]; then
|
|
cvsdist |
3de397 |
. $i
|
|
cvsdist |
3de397 |
fi
|
|
cvsdist |
3de397 |
done
|
|
cvsdist |
3de397 |
unset i
|
|
cvsdist |
3de397 |
fi
|