.zshrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 29 Oct 2013 20:19:23 +0200
changeset 651 649cbbab7ded
parent 245 aefd2167af31
child 653 a5566b182446
permissions -rw-r--r--
Add new and update old entries.


if [[ -e /etc/zshrc ]]; then
. /etc/zshrc
fi

EDITOR=vim

PS1='zsh# '

# Easy cd to often used dirs.
CDPATH=.:~:~/devel:~/devel/my-devel

HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000

setopt AUTO_CD
setopt BEEP
setopt NOMATCH
setopt NOTIFY

setopt APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_NO_FUNCTIONS

setopt MENUCOMPLETE
# Use completion cache
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache

# Ignore SCM revision files
zstyle ':completion:*:(all-|)files' ignored-patterns '(|*/)(CVS|.svn|.git)'
zstyle ':completion:*:cd:*' ignored-patterns '(*/)#(CVS|.svn|.git)'

# Fuzzy completion
zstyle ':completion:*' completer _expand _complete _match _approximate
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric

# Do not attempt to complete missing commands
#zstyle ':completion:*:functions' ignored-patterns '_*'

# Complete PIDS with menu
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:kill:*' force-list always

autoload -U edit-command-line
zle -N edit-command-line
bindkey '\ee' edit-command-line

# Emacs like editing.
bindkey -e

bindkey "^[[A" history-search-backward
bindkey "^[[B" history-search-forward

autoload -U zutil

autoload -U compinit
compinit

# autoload -U promptinit
# promptinit
# prompt walters

# Renaming with globbing
# autoload zmv