Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: syncing .zsh* files
- X-seq: zsh-users 7810
- From: Matt Pharr <matt@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: syncing .zsh* files
- Date: Fri, 06 Aug 2004 09:49:27 -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <198F38D4-E7C4-11D8-8E3F-000D93AD26C8@xxxxxxxxxxxx>
Timothy Luoma <lists@xxxxxxxxxxxx> 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@xxxxxxxxx <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author