From: Matt Pharr <matt@pharr.org>
To: zsh-users@sunsite.dk
Subject: Re: syncing .zsh* files
Date: Fri, 06 Aug 2004 09:49:27 -0700 [thread overview]
Message-ID: <m2llgsjjoo.fsf@bjork.pharr.org> (raw)
In-Reply-To: <198F38D4-E7C4-11D8-8E3F-000D93AD26C8@tntluoma.com>
Timothy Luoma <lists@tntluoma.com> 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 <URL:http://graphics.stanford.edu/~mmp>
=======================================================================
In a cruel and evil world, being cynical can allow you to get some
entertainment out of it. --Daniel Waters
next prev parent reply other threads:[~2004-08-06 16:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-06 16:17 Timothy Luoma
2004-08-06 16:39 ` Björn Lindström
2004-08-06 16:49 ` Matt Pharr [this message]
2004-08-06 18:25 ` Vincent Lefevre
2004-08-07 22:07 ` Bart Schaefer
2004-08-07 8:06 ` Michael Prokop
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2llgsjjoo.fsf@bjork.pharr.org \
--to=matt@pharr.org \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).