Reorganize zsh dotfiles
This commit is contained in:
parent
cf19007423
commit
6a53fe53a4
|
@ -24,5 +24,3 @@ cache() {
|
|||
fi
|
||||
source $cache
|
||||
}
|
||||
|
||||
source "$DOTFILES/aliases"
|
||||
|
|
0
zsh/completions/_brew
Normal file → Executable file
0
zsh/completions/_brew
Normal file → Executable file
3
zshenv
3
zshenv
|
@ -27,8 +27,7 @@ path=(
|
|||
)
|
||||
|
||||
fpath=(
|
||||
~/.zsh/completions
|
||||
"$DOTFILES/zsh/functions"
|
||||
~/.zsh/{functions,completions}
|
||||
$fpath
|
||||
)
|
||||
|
||||
|
|
14
zshrc
14
zshrc
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue