summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorhugues <hugues@a0e5b806-a6f9-0310-978d-cbce73f8a913>2006-03-25 18:34:38 +0000
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:06 +0100
commite4e8c8796df24f8139f708ea160c46947116d9db (patch)
tree77eb8e0e881161a18df7c35a040dbfb8f2ff78b9 /.zshrc
parent8324d996a93cdc42cf9a97a3794c414b93c3c8fd (diff)
Mise à jour de la conf Zsh multi-hosts
git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@175 a0e5b806-a6f9-0310-978d-cbce73f8a913
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