.zshrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 17 Sep 2015 19:13:21 +0300
changeset 751 eddc767cd962
parent 749 89208f64214c
child 826 54d42c57cc4d
permissions -rw-r--r--
Ignore file extension case for dev files.


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

if [[ -f ~/.env ]]; then
  . ~/.env
fi

PS1='zsh# '

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-beginning-search-backward
bindkey '^[[B' history-beginning-search-forward

# 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