From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11315 invoked from network); 6 Aug 2004 16:52:20 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Aug 2004 16:52:20 -0000 Received: (qmail 95588 invoked from network); 6 Aug 2004 16:52:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Aug 2004 16:52:14 -0000 Received: (qmail 18527 invoked by alias); 6 Aug 2004 16:51:29 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7810 Received: (qmail 18517 invoked from network); 6 Aug 2004 16:51:29 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 6 Aug 2004 16:51:29 -0000 Received: (qmail 92301 invoked from network); 6 Aug 2004 16:49:30 -0000 Received: from adsl-66-125-65-154.dsl.sntc01.pacbell.net (HELO bjork.pharr.org) (66.125.65.154) by a.mx.sunsite.dk with SMTP; 6 Aug 2004 16:49:29 -0000 Received: by bjork.pharr.org (Postfix, from userid 501) id 7B84B11E741; Fri, 6 Aug 2004 09:49:27 -0700 (PDT) To: zsh-users@sunsite.dk Subject: Re: syncing .zsh* files References: <198F38D4-E7C4-11D8-8E3F-000D93AD26C8@tntluoma.com> From: Matt Pharr X-Face: C!.oGaE]n@p)VF9Ss3]f'|<)kRrtpG)^^b^X-3_zhUHp\jBj29jaoTItqWR>mHa+v-{/!jx7OA@!cV0>Fm-b:zEL<`oOXG[BFQ\ User-Agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.4 (Military Intelligence, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 Timothy Luoma writes: > I'm interested in keeping my .zsh(rc|env) files synced across 3 different > machines. > > Anyone have any good techniques for doing so, especially when there are > some things ($PATH) which are different on each machine? FWIW I've found it works well to split things into core settings, the same across all architectures, and then separate files that hold the modifications to the baseline settings. My .zshenv file, then, has something like: export MARCH=`/bin/uname | /usr/bin/tr A-Z a-z | /bin/sed 's/64//g'` if [[ -a ~/.zshenv.$MARCH ]] then source ~/.zshenv.$MARCH fi And then I have a .zshenv.linux, .zshenv.osx, .zshenv.irix, etc. (Similarly for .zshenv, etc.) -matt -- Matt Pharr matt@pharr.org ======================================================================= In a cruel and evil world, being cynical can allow you to get some entertainment out of it. --Daniel Waters