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
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=(
~/.zsh/completions
"$DOTFILES/zsh/functions"
~/.zsh/{functions,completions}
$fpath
)

14
zshrc
View file

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