From e4e8c8796df24f8139f708ea160c46947116d9db Mon Sep 17 00:00:00 2001 From: hugues Date: Sat, 25 Mar 2006 18:34:38 +0000 Subject: Mise à jour de la conf Zsh multi-hosts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@175 a0e5b806-a6f9-0310-978d-cbce73f8a913 --- .zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.zshrc') 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 -- cgit v1.2.3