zsrc cleanup

This commit is contained in:
Cyryl Plotnicki-Chudyk 2013-11-10 12:17:18 +01:00
parent 3fea583971
commit e2768e666e

7
.zshrc
View file

@ -4,26 +4,27 @@ SAVEHIST=1000
setopt appendhistory autocd extendedglob nomatch notify setopt appendhistory autocd extendedglob nomatch notify
unsetopt beep unsetopt beep
#vim bindings
bindkey -v bindkey -v
autoload -U compinit autoload -U compinit
compinit compinit
setopt completealiases setopt completealiases
autoload -U comptinit promptinit autoload -U promptinit
compinit
promptinit promptinit
#default, should be everywhere #default, should be everywhere
prompt redhat prompt redhat
#use 'gentoo' prompt if available
prompt -l | grep -i gentoo > /dev/null prompt -l | grep -i gentoo > /dev/null
code=$? code=$?
if [[ $code == 0 ]]; then if [[ $code == 0 ]]; then
prompt gentoo prompt gentoo
zstyle ':completion::complete:*' use-cache 1
fi fi
zstyle ':completion::complete:*' use-cache 1
if [[ `uname` == 'Darwin' ]]; then if [[ `uname` == 'Darwin' ]]; then
alias vim=/usr/local/Cellar/vim/7.4/bin/vim alias vim=/usr/local/Cellar/vim/7.4/bin/vim
fi fi