Reorganize zsh dotfiles

This commit is contained in:
Henrik Lissner 2016-02-26 14:49:05 -05:00
parent cf19007423
commit 6a53fe53a4
6 changed files with 9 additions and 10 deletions

View file

@ -24,5 +24,3 @@ cache() {
fi fi
source $cache source $cache
} }
source "$DOTFILES/aliases"

0
zsh/completions/_brew Normal file → Executable file
View file

3
zshenv
View file

@ -27,8 +27,7 @@ path=(
) )
fpath=( fpath=(
~/.zsh/completions ~/.zsh/{functions,completions}
"$DOTFILES/zsh/functions"
$fpath $fpath
) )

14
zshrc
View file

@ -6,6 +6,7 @@ if [ ! -d ~/.zgen ]; then
exit 1 exit 1
fi fi
TMUXIFIER="$HOME/.tmuxifier"
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
ZGEN_AUTOLOAD_COMPINIT=true ZGEN_AUTOLOAD_COMPINIT=true
[[ "${USER}" == "root" ]] && ZGEN_AUTOLOAD_COMPINIT=false [[ "${USER}" == "root" ]] && ZGEN_AUTOLOAD_COMPINIT=false
@ -27,6 +28,13 @@ if ! zgen saved; then
zgen save zgen save
fi fi
source ~/.zsh/config
if is-interactive; then
source ~/.zsh/keybinds
source ~/.zsh/prompt
source ~/.zsh/completion
fi
cache rbenv init - --no-rehash cache rbenv init - --no-rehash
cache pyenv init - --no-rehash cache pyenv init - --no-rehash
if is-interactive; then if is-interactive; then
@ -34,12 +42,6 @@ if is-interactive; then
cache tmuxifier init - cache tmuxifier init -
fi fi
source ~/.zsh/config
if is-interactive; then
source ~/.zsh/keybinds
source ~/.zsh/prompt
source ~/.zsh/completion
fi
source ~/.zsh/aliases source ~/.zsh/aliases
# Done! # Done!