Cleaner and less forking implementation of zsh.d
[abe:zshrc.git] / zshrc
1 # Axel's .zshrc -*- sh -*-
2 #
3 # With ideas from grml and Freak
4
5 setopt EXTENDED_GLOB CSH_NULL_GLOB
6 if [ -d ~/.zsh/zsh.d ]; then
7     for zshrc_snipplet in ~/.zsh/zsh.d/[0-9][0-9]{,$(hostname -s)}-*[^~] ; do
8         if [ "${zshrc_snipplet:e}" != zwc ]; then
9             source $zshrc_snipplet
10         fi
11     done
12 fi