Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (35 sloc) 825 Bytes
fpath=(~/.zsh/completion $fpath)
# completion
autoload -U compinit
# automatically enter directories without cd
setopt auto_cd
# use vim as an editor
export EDITOR=vim
# aliases
if [ -e "$HOME/.aliases" ]; then
source "$HOME/.aliases"
# vi mode
bindkey -v
bindkey ^F vi-cmd-mode
# use incremental search
bindkey ^R history-incremental-search-backward
# expand functions in the prompt
setopt prompt_subst
# prompt
export PS1='[${SSH_CONNECTION+"%n@%m:"}%~] '
# ignore duplicate history entries
setopt histignoredups
# keep more history
export HISTSIZE=200
# look for ey config in project dirs
export EYRC=./.eyrc
# restore previous cwd
if [[ -f ~/.last_cwd ]]; then
cd `cat ~/.last_cwd`
_save_last_cwd() {
echo `pwd` > ~/.last_cwd
chpwd_functions=( "${chpwd_functions[@]}" _save_last_cwd )