dotfiles/.zshrc
Cyryl Plotnicki-Chudyk 7799154149 default editor in zsh
2013-11-16 21:52:22 +01:00

35 lines
639 B
Bash

HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd extendedglob nomatch notify
unsetopt beep
#vim bindings
bindkey -v
autoload -U compinit
compinit
setopt completealiases
autoload -U promptinit
promptinit
#default, should be everywhere
prompt redhat
#use 'gentoo' prompt if available
prompt -l | grep -i gentoo > /dev/null
code=$?
if [[ $code == 0 ]]; then
prompt gentoo
zstyle ':completion::complete:*' use-cache 1
fi
if [[ `uname` == 'Darwin' ]]; then
alias vim=/usr/local/Cellar/vim/7.4/bin/vim
fi
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
PATH=$HOME/tools:$PATH
EDITOR="vim"