jamesnvc /.zshrc

My .zshrc - lots of completions!
# Lines configured by zsh-newuser-install
setopt appendhistory autocd extendedglob nohup autopushd
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall

zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' file-sort access
zstyle ':completion:*' list-suffixes true
zstyle ':completion:*' matcher-list '' '+m:{a-z}={A-Z}' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
zstyle ':completion:*' preserve-prefix '//[^/]##/'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:kill:*'   force-list always
zstyle ':completion:::::' completer _complete _approximate
zstyle ':completion:*:approximate:*' max-errors 2
zstyle :compinstall filename '/home/james/.zshrc'
zstyle ':completion:*' completer _complete _prefix
zstyle ':completion::prefix-1:*' completer _complete
zstyle ':completion:incremental:*' completer _complete _correct
zstyle ':completion:predict:*' completer _complete # Completion caching
zstyle ':completion::complete:*' use-cache 1
zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST # Expand partial paths
zstyle ':completion:*' expand 'yes'
zstyle ':completion:*' squeeze-slashes 'yes' # Include non-hidden directories in globbed file completions
zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~' # Separate matches into groups
zstyle ':completion:*:matches' group 'yes' # Describe each match group.
zstyle ':completion:*:descriptions' format "%B---- %d%b" # Messages/warnings format
zstyle ':completion:*:messages' format '%B%U---- %d%u%b'
zstyle ':completion:*:warnings' format '%B%U---- no match for: %d%u%b' # Describe options in full
zstyle ':completion:*:options' description 'yes'
zstyle ':completion:*:options' auto-description '%d'

autoload -Uz compinit

local _myhosts
_myhosts=( ${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*} )
zstyle ':completion:*' hosts $_myhosts

autoload -U url-quote-magic
zle -N self-insert url-quote-magic

eval "`dircolors -b`"

alias iw=$HOME/bin/iw-open.sh
alias cds='select x in `dirs`; do ;eval cd $x ; unset x ; break ; done'
alias man="man -P most"
alias l='ls -h --color=auto'
alias ls='ls -h --color=auto'
alias ll='ls -h --color=auto -la'
alias la='ls -a'
alias df='df -h'
alias du='du -h'
alias ec=emacsclient
export PYTHONPATH=$HOME/Programming/python
export PUGS_EMBED="parrot"
export PARROT_PATH=${HOME}/src/parrot
export AOX=/usr/local/archiveopteryx
export EDITOR=emacsclient
export SSH_PORT=443
export SHELL=zsh
export DARCS_SCP='scp -i /home/james/.ssh-keys/wolever-rsync-key'
export SQUEAK_IMAGE=$HOME/squeak-imgs/current-image.image
export DARCS_SFTP='sftp -oIdentityFile=/home/james/.ssh-keys/wolever-rsync-key -oPort=443'
export PATH=/usr/share/snow/current/bin:$HOME/bin:$PATH:/sbin:/usr/sbin
export LD_PRELOAD='' #/usr/lib/fglrx/diversions/libGL.so.1.2

PS1=$'%{\e[1;32m%} %w %t %{\e[1;33m%}%~> %{\e[0m%}'

if [ TERM="xterm" ]; then
    export TERM='xterm-color'

# what progs can use the hostname completion
compctl -k hostnames ping telnet ftp nslookup ssh traceroute mtr scp ncftp

ZFC_WELCOME_STRING="ZSH Foundation Configuration."
## Functions
zfc_welcome_msg () {
	echo "\r\e[0;37m${ZFC_WELCOME_STRING}\e[0m - `hostname`\e[0K"
## Get Going
if [ $SHLVL -eq 1 ]; then

if [ $DISPLAY ] ; then
    loadkeys /usr/share/keymaps/i386/qwerty/emacs2.kmap.gz