summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc8
1 files changed, 7 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 7de8480..3868a76 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,9 +1,15 @@
ZDOTDIR=~/.zsh
if [ -d $ZDOTDIR ]; then
- for script in $ZDOTDIR/*.zsh
+ for script in $ZDOTDIR/??_*.zsh
do
source $script
+ local_script="${script:r}.`hostname -s`"
+
+ if ( [ -f $local_script ] )
+ then
+ source $local_script
+ fi
done
fi