psss / rpms / zsh

Forked from rpms/zsh 5 years ago
Clone
cvsdist abdd31b
#
cvsdist abdd31b
# /etc/zshrc is sourced in interactive shells.  It
cvsdist abdd31b
# should contain commands to set up aliases, functions,
cvsdist abdd31b
# options, key bindings, etc.
cvsdist abdd31b
#
cvsdist abdd31b
cvsdist b244625
## shell functions
cvsdist b244625
#setenv() { export $1=$2 }  # csh compatibility
cvsdist abdd31b
cvsdist abdd31b
# Set prompts
cvsdist 373df78
PROMPT='[%n@%m]%~%# '    # default prompt
cvsdist abdd31b
#RPROMPT=' %~'     # prompt for right side of screen
cvsdist abdd31b
cvsdist abdd31b
# bindkey -v             # vi key bindings
cvsdist 8075d0a
# bindkey -e             # emacs key bindings
cvsdist 538cfb0
bindkey ' ' magic-space  # also do history expansion on space
cvsdist 3de397a
2fc798c
# from bashrc, with zsh fixes
2fc798c
if [[ ! -o login ]]; then # We're not a login shell
cvsdist 3de397a
    for i in /etc/profile.d/*.sh; do
cvsdist 3de397a
	if [ -r "$i" ]; then
cvsdist 3de397a
	    . $i
cvsdist 3de397a
	fi
cvsdist 3de397a
    done
cvsdist 3de397a
    unset i
cvsdist 3de397a
fi