aboutsummaryrefslogtreecommitdiffstats
path: root/_zshrc
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-04-30 15:13:55 +0800
committerAaron LI <aaronly.me@gmail.com>2016-04-30 15:13:55 +0800
commitc381c0c531a78ff4b1a1907c10da4ff54a112f0a (patch)
treeb194beb791c36b31fd1f3333d2f20f07462fe516 /_zshrc
parent3d6f015f851398d0ce1e509cd6fd88e74c7626f6 (diff)
downloaddotfiles-c381c0c531a78ff4b1a1907c10da4ff54a112f0a.tar.bz2
_zsh: simplify initialization; order by perfix
Diffstat (limited to '_zshrc')
-rw-r--r--_zshrc22
1 files changed, 7 insertions, 15 deletions
diff --git a/_zshrc b/_zshrc
index bd07b7e..9b549c6 100644
--- a/_zshrc
+++ b/_zshrc
@@ -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: #