refactor: make zshrc more readable
This commit is contained in:
parent
412cb29eca
commit
44a0899e61
1 changed files with 14 additions and 4 deletions
|
@ -10,13 +10,23 @@ fi
|
|||
|
||||
# Make utilities available
|
||||
PATH="$DOTFILES_DIR/bin:$PATH"
|
||||
. $DOTFILES_DIR/lib/function.zsh
|
||||
|
||||
for DOTFILE in "$DOTFILES_DIR"/lib/{path,env,prompt,alias,conda,plugins,custom}.zsh; do
|
||||
[ -f "$DOTFILE" ] && . "$DOTFILE"
|
||||
src=(
|
||||
'base'
|
||||
'function'
|
||||
'path'
|
||||
'env'
|
||||
'prompt'
|
||||
'alias'
|
||||
'conda'
|
||||
'plugins'
|
||||
)
|
||||
|
||||
for dotfile in $src; do
|
||||
. $DOTFILES_DIR/lib/$dotfile.zsh
|
||||
done
|
||||
|
||||
unset DOTFILE
|
||||
unset dotfile
|
||||
|
||||
DOTFILES_EXTRA_DIR="$HOME/.extra"
|
||||
|
||||
|
|
Loading…
Reference in a new issue