setopt AUTO_CD setopt CORRECT setopt noautomenu setopt nolistambiguous export LSCOLORS='gxfxcxdxbxgggdabagacad' export CLICOLOR='true' export EDITOR='vim' # Aliases alias ll='ls -l' alias la='ls -a' alias vi='vim' export PS1="$(print '%{\e[1;31m%}%n%{\e[0m%}') @ %d$ " HISTFILE=~/.histfile HISTSIZE=1000 SAVEHIST=1000 unsetopt beep autoload -Uz compinit compinit # End of lines added by compinstall # cd to a file should take you to the dir that contains the file # courtesy of Artur Penttinen function cd () { if [[ -f $1 ]]; then builtin cd $1:h else builtin cd $1 fi }