~ bret /.zshrc

# No beeping
set nobeep

# Common settings
export EDITOR='emacs -nw'
export VISUAL=$EDITOR
export CVS_RSH=ssh

bindkey -e

# zsh options
setopt auto_list no_list_ambiguous
setopt no_auto_menu extended_glob
setopt append_history extended_history

# Save 2000 entries in our ZSH history
HISTFILE=$HOME/.history
HISTSIZE=2000
SAVEHIST=2000

# zsh completion
autoload -U compinit
compinit

# Make ls pretty 
eval `dircolors`
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
alias ls='ls -F --color=tty'

# Use Sun Java instead of GNU Java
export PATH=/usr/local/java/1.6/bin:$PATH

# Set prompt and title
PS1='[%B%~%b]$ '
deftitle='%m: %~'

case $TERM in
    xterm|vt220)
        titlepattern='\e]0;${(q)1}\a'
        ;;
    screen)
        titlepattern='\ek${(q)1}\e\\'
        ;;
esac
 
if [ -n "$titlepattern" ]; then
    printtitle() { 1=${title:-$1}; print -n "${(e)titlepattern}" }
    precmd() { printtitle "${(%)deftitle}" }
    preexec() { printtitle "${2/%/?}" }
fi
  
Your Ad Here