aboutsummaryrefslogtreecommitdiffstats
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
parent3d6f015f851398d0ce1e509cd6fd88e74c7626f6 (diff)
downloaddotfiles-c381c0c531a78ff4b1a1907c10da4ff54a112f0a.tar.bz2
_zsh: simplify initialization; order by perfix
-rw-r--r--_zsh/00-checks.zsh (renamed from _zsh/checks.zsh)0
-rw-r--r--_zsh/10-setopt.zsh (renamed from _zsh/setopt.zsh)0
-rw-r--r--_zsh/20-colors.zsh (renamed from _zsh/colors.zsh)0
-rw-r--r--_zsh/30-prompt.zsh (renamed from _zsh/prompt.zsh)0
-rw-r--r--_zsh/40-completion.zsh (renamed from _zsh/completion.zsh)0
-rw-r--r--_zsh/40-functions.zsh (renamed from _zsh/functions.zsh)0
-rw-r--r--_zsh/40-history.zsh (renamed from _zsh/history.zsh)0
-rw-r--r--_zsh/40-hooks.zsh (renamed from _zsh/hooks.zsh)0
-rw-r--r--_zsh/50-bindkeys.zsh (renamed from _zsh/bindkeys.zsh)0
-rw-r--r--_zsh/50-vi-mode.zsh (renamed from _zsh/vi-mode.zsh)0
-rw-r--r--_zsh/80-emacs.zsh (renamed from _zsh/emacs.zsh)2
-rw-r--r--_zsh/90-aliases.zsh (renamed from _zsh/aliases.zsh)0
-rw-r--r--_zsh/90-exports.zsh (renamed from _zsh/exports.zsh)0
-rw-r--r--_zshrc22
14 files changed, 7 insertions, 17 deletions
diff --git a/_zsh/checks.zsh b/_zsh/00-checks.zsh
index 6868e2c..6868e2c 100644
--- a/_zsh/checks.zsh
+++ b/_zsh/00-checks.zsh
diff --git a/_zsh/setopt.zsh b/_zsh/10-setopt.zsh
index fb8b5e8..fb8b5e8 100644
--- a/_zsh/setopt.zsh
+++ b/_zsh/10-setopt.zsh
diff --git a/_zsh/colors.zsh b/_zsh/20-colors.zsh
index b9a4797..b9a4797 100644
--- a/_zsh/colors.zsh
+++ b/_zsh/20-colors.zsh
diff --git a/_zsh/prompt.zsh b/_zsh/30-prompt.zsh
index 6c1911a..6c1911a 100644
--- a/_zsh/prompt.zsh
+++ b/_zsh/30-prompt.zsh
diff --git a/_zsh/completion.zsh b/_zsh/40-completion.zsh
index 7435125..7435125 100644
--- a/_zsh/completion.zsh
+++ b/_zsh/40-completion.zsh
diff --git a/_zsh/functions.zsh b/_zsh/40-functions.zsh
index 46da01c..46da01c 100644
--- a/_zsh/functions.zsh
+++ b/_zsh/40-functions.zsh
diff --git a/_zsh/history.zsh b/_zsh/40-history.zsh
index e1275a6..e1275a6 100644
--- a/_zsh/history.zsh
+++ b/_zsh/40-history.zsh
diff --git a/_zsh/hooks.zsh b/_zsh/40-hooks.zsh
index defee0b..defee0b 100644
--- a/_zsh/hooks.zsh
+++ b/_zsh/40-hooks.zsh
diff --git a/_zsh/bindkeys.zsh b/_zsh/50-bindkeys.zsh
index c53d3bf..c53d3bf 100644
--- a/_zsh/bindkeys.zsh
+++ b/_zsh/50-bindkeys.zsh
diff --git a/_zsh/vi-mode.zsh b/_zsh/50-vi-mode.zsh
index d786102..d786102 100644
--- a/_zsh/vi-mode.zsh
+++ b/_zsh/50-vi-mode.zsh
diff --git a/_zsh/emacs.zsh b/_zsh/80-emacs.zsh
index b1ace40..501ddb2 100644
--- a/_zsh/emacs.zsh
+++ b/_zsh/80-emacs.zsh
@@ -26,8 +26,6 @@ alias e=emacs
alias eeval='_emacsclient --eval'
# Create a new X frame
alias eframe='_emacsclient --create-frame --no-wait'
-# mu4e
-alias mu4e='eframe -e "(mu4e)" -F "((width . 100) (height . 40))"'
# Write to stdout the path to the file opened in the current buffer
function efile() {
diff --git a/_zsh/aliases.zsh b/_zsh/90-aliases.zsh
index 1327721..1327721 100644
--- a/_zsh/aliases.zsh
+++ b/_zsh/90-aliases.zsh
diff --git a/_zsh/exports.zsh b/_zsh/90-exports.zsh
index 8dab42d..8dab42d 100644
--- a/_zsh/exports.zsh
+++ b/_zsh/90-exports.zsh
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: #