~ davidlee /.zshrc

# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# meta sends escape
bindkey -m
setopt autocd
setopt extended_glob
# End of lines configured by zsh-newuser-install

# The following lines were added by compinstall
zstyle :compinstall filename '/home/david/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall

# depending on the type of terminal, set up keymap and video mode
case $TERM in 
  cons*)
    # if a standard console terminal
    kbdcontrol -l ~/.kbd_map_no_caps
    /usr/sbin/vidcontrol -i mode 80x50
    # startx
  ;;
  xterm)
    # if an xterm
  
  ;;
  *)
    # otherwise 

  ;;
esac


# make it look pretty
autoload -U promptinit 
promptinit 
# prompt oliver
# http://www.acm.uiuc.edu/workshops/zsh/prompt/escapes.html
export PROMPT="%n@%m %c %# "

# aliases
alias rm='rm -i'
alias m=more
alias l="ls -AFhl -g"
alias setx='setenv DISPLAY :0.0'
alias dsrm='find . -name ".DS_Store" -exec rm \{} \;'
alias today='cat /usr/share/calendar/* | grep `date +"%m/%d"`'
alias start_cpan='perl -MCPAN -e shell'
alias trash="mv $1 ~/Trash"
alias psql='/opt/local/bin/psql8'
alias start_lighty="sudo /opt/local/sbin/lighttpd -f /opt/local/etc/lighttpd/lighttpd.conf"
alias restart_lighty="killall lighttpd; sudo /opt/local/sbin/lighttpd -f /opt/local/etc/lighttpd/lighttpd.conf"
# alias start_svn="/opt/local/bin/svnserve -d -r /var/svn/cf"
alias sc='script/console'
alias ss='script/server'
alias ri='ri -Tf ansi'