Below is the file '.zshrc' from this revision. You can also download the file.

#
# .zshrc - readby zsh in interactive mode
#

# set default permissions
umask 022

# Emacs-style command line editing
bindkey -e

# left prompt
# ANSI colour codes: 30 = black 31=red 32=green 34=blue 35=magenta 36=cyan 37=white

if [[ $UID -eq 0 ]]; then
	hprompt="r-%m";
	hcolour="31"
else
	hprompt="%m"
	hcolour="32"
fi

PROMPT="%{[${hcolour}m%}${hprompt}::%B%~%b $ %{%}"


# if we're running in a suitable term, set the window title
if [[ "$TERM" = "xterm" || "$TERM" = "screen" || "$TERM" = "xterm-color" ]]
then
    PROMPT="%{]2;%n@%m [%~]%}$PROMPT"
    # konsole session name
fi

# setup colourful ls
if [[ -x `which dircolors 2>/dev/null` ]]; then eval `dircolors`; fi

# set up less pipe
if [[ -x `which lesspipe 2>/dev/null` ]]; then eval `lesspipe`; fi

# if nothing else has eventuated, try to set a saner pager than
# whatever is on the system
if [[ -z $PAGER && -x `which less 2>/dev/null` ]]; then export PAGER=less; fi

# glob extensions
setopt extendedglob
# list ambiguous matches
setopt list_ambiguous
# append to the history file; don't overwrite it
setopt APPEND_HISTORY
# automatically list choices on ambigious completion
setopt AUTO_LIST
# automatically remove un-necessary trailing slash
setopt AUTO_REMOVE_SLASH
# save extra history information
setopt EXTENDED_HISTORY
# don't send SIGHUP from backgrounded jobs
setopt NO_HUP
# filter duplicates from the history
setopt HIST_IGNORE_DUPS
# allow comments in an interactive shell
setopt INTERACTIVE_COMMENTS
# don't beep on ambiguous completion
setopt NO_LIST_BEEP
# show the type of file with a trailing mark
setopt LIST_TYPES
# list jobs in a long format
setopt LONG_LIST_JOBS
# print the exit value of programs
setopt PRINT_EXIT_VALUE
# RC style '' -> ' quoting in strings
setopt RC_QUOTES

bindkey ' ' magic-space    # also do history expansion on space
bindkey '^I' complete-word # complete on tab, leave expansion to _expand

# Completion Styles

autoload -U compinit
compinit

# list of completers to use
zstyle ':completion:*::::' completer _expand _complete _ignored

# allow one error for every three characters typed in approximate completer
#zstyle -e ':completion:*:approximate:*' max-errors \
#    'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) numeric )'

# insert all expansions for expand completer
zstyle ':completion:*:expand:*' tag-order all-expansions

# formatting and messages
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '%B%d%b'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
#zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':completion:*' group-name ''

# match uppercase from lowercase
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

# offer indexes before parameters in subscripts
zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters

# command for process lists, the local web server details and host completion
#zstyle ':completion:*:processes' command 'ps -o pid,s,nice,stime,args'
#zstyle ':completion:*:urls' local 'www' '/var/www/htdocs' 'public_html'
zstyle '*' hosts $hosts

# Filename suffixes to ignore during completion (except after rm command)
zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' \
    '*?.old' '*?.pro'
# the same for old style completion
#fignore=(.o .c~ .old .pro)

# ignore completion functions (until the _ignored completer)
zstyle ':completion:*:functions' ignored-patterns '_*'