diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-04-30 15:13:55 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-04-30 15:13:55 +0800 |
commit | c381c0c531a78ff4b1a1907c10da4ff54a112f0a (patch) | |
tree | b194beb791c36b31fd1f3333d2f20f07462fe516 /_zshrc | |
parent | 3d6f015f851398d0ce1e509cd6fd88e74c7626f6 (diff) | |
download | dotfiles-c381c0c531a78ff4b1a1907c10da4ff54a112f0a.tar.bz2 |
_zsh: simplify initialization; order by perfix
Diffstat (limited to '_zshrc')
-rw-r--r-- | _zshrc | 22 |
1 files changed, 7 insertions, 15 deletions
@@ -18,26 +18,18 @@ ## https://robots.thoughtbot.com/the-unix-shells-humble-if ## ## Aaron LI -## Created: 2014-05-31 +## 2014-05-31 ## -source ~/.zsh/checks.zsh -source ~/.zsh/colors.zsh -source ~/.zsh/setopt.zsh -source ~/.zsh/exports.zsh -source ~/.zsh/prompt.zsh -source ~/.zsh/completion.zsh -source ~/.zsh/bindkeys.zsh -source ~/.zsh/functions.zsh -source ~/.zsh/history.zsh -source ~/.zsh/hooks.zsh -source ~/.zsh/vi-mode.zsh -source ~/.zsh/emacs.zsh -source ~/.zsh/aliases.zsh +for f in ~/.zsh/[0-9][0-9]-*.zsh; do + source ${f} +done ## Local configurations -[ -r ~/.zshrc.local ] && source ~/.zshrc.local || : +if [ -r ~/.zshrc.local ]; then + source ~/.zshrc.local +fi # vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: # |