From c381c0c531a78ff4b1a1907c10da4ff54a112f0a Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 30 Apr 2016 15:13:55 +0800 Subject: _zsh: simplify initialization; order by perfix --- _zshrc | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to '_zshrc') 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: # -- cgit v1.2.2