373df78710
Fri Jun 20 2003 Jens Petersen <petersen@redhat.com> - 4.0.7-1 - update to 4.0.7 bugfix release Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> - rebuilt Thu May 01 2003 Jens Petersen <petersen@redhat.com> - 4.0.6-7 - don't set stty erase in a dumb terminal with tput kbs in /etc/zshrc (#89856) [reported by Ben Liblit] - make default prompt more informative, like bash
23 lines
627 B
Plaintext
23 lines
627 B
Plaintext
#
|
|
# /etc/zshrc is sourced in interactive shells. It
|
|
# should contain commands to set up aliases, functions,
|
|
# options, key bindings, etc.
|
|
#
|
|
|
|
# Shell functions
|
|
setenv() { export $1=$2 } # csh compatibility
|
|
|
|
# Set prompts
|
|
PROMPT='[%n@%m]%~%# ' # default prompt
|
|
#RPROMPT=' %~' # prompt for right side of screen
|
|
|
|
# bindkey -v # vi key bindings
|
|
# bindkey -e # emacs key bindings
|
|
bindkey ' ' magic-space # also do history expansion on space
|
|
|
|
# setup backspace correctly
|
|
if [ -x /usr/bin/tput ]; then
|
|
# check we're not in a dumb terminal
|
|
[ -n "`tput kbs 2>/dev/null`" ] && stty erase `tput kbs`
|
|
fi
|