1 # Set file creation mask
 
   7 # Terminal initialization
 
  11 # Make sure we know the username
 
  14     USER=`logname`; export USER
 
  17 # Setup a default path
 
  18 PATH=.:$HOME/bin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin
 
  21 PAGER=less; export PAGER
 
  22 LESS=aceiMs; export LESS
 
  25 EDITOR=/usr/bin/vi; export EDITOR
 
  26 VISUAL=/usr/bin/vi; export VISUAL
 
  37 setopt HIST_IGNORE_DUPS
 
  45 setopt RC_EXPAND_PARAM
 
  49 if [[ "$TERM" = "dumb" ]]
 
  55 HISTFILE=$HOME/.zshhistory
 
  59 # Files to ignore when completing
 
  63 if [[ "$TERM" == "xterm" ]]
 
  65     PROMPT="%{
\e]2;%M
\a%}%m [%~] %# "
 
  74 alias mv="nocorrect mv"         # no spelling correction on mv
 
  75 alias cp="nocorrect cp"         # no spelling correction on cp
 
  76 alias mkdir="nocorrect mkdir"   # no spelling correction on mkdir
 
  77 alias man="nocorrect man"       # no spelling correction on man
 
  79 alias mailq="/usr/sbin/exim -bp"
 
  80 alias runq="sudo /usr/sbin/exim -qq"
 
  81 alias mailrm="sudo /usr/sbin/exim -Mrm"
 
  82 alias mailedit="sudo /usr/sbin/exim -Meb"
 
  83 alias mailfreeze="sudo /usr/sbin/exim -Mf"
 
  84 alias mailthaw="sudo /usr/sbin/exim -Mt"
 
  86 # ish type history list (zsh: ctrl-v key, emacs ctrl-q key)
 
  87 bindkey "\eOA"  history-beginning-search-backward \
 
  88         "\e[A"  history-beginning-search-backward \
 
  89         "\eOB"  history-beginning-search-forward  \
 
  90         "\e[B"  history-beginning-search-forward  \
 
  93         "^A"    beginning-of-line                 \
 
  95         "\eOV"  beginning-of-line                 \
 
  96         "\e[V"  beginning-of-line                 \
 
  97         "\eOD"  backward-char                     \
 
  98         "\e[D"  backward-char                     \
 
 100         "\e[C"  forward-char                      \
 
 103         "\e[2~" overwrite-mode                    \
 
 111 # Add the local functions to the function search path
 
 112 fpath=($HOME/zshfuncs $fpath)
 
 114 # Autoload all functions on the function search path
 
 115 foreach file in $HOME/zshfuncs/*
 
 117     autoload `basename $file`