zshrc: use gentoo prompt when available

This commit is contained in:
Cyryl Plotnicki-Chudyk 2013-11-10 11:56:06 +01:00
parent c7989fc3df
commit 303473fca1

11
.zshrc
View file

@ -10,11 +10,20 @@ autoload -U compinit
compinit compinit
setopt completealiases setopt completealiases
autoload -U promptinit autoload -U comptinit promptinit
compinit
promptinit promptinit
#default, should be everywhere
prompt redhat prompt redhat
prompt -l | grep -i gentoo > /dev/null
code=$?
if [[ $code == 0 ]]; then
prompt gentoo
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