zsh-users
 help / color / mirror / code / Atom feed
* How do *you* sync your zsh config files?
@ 1999-04-10 23:57 Timothy J Luoma
  1999-04-11  1:32 ` Michael Barnes
  1999-04-15 19:22 ` Adam Spiers
  0 siblings, 2 replies; 7+ messages in thread
From: Timothy J Luoma @ 1999-04-10 23:57 UTC (permalink / raw)
  To: zsh-users


Anyone else in this situation:

I use zsh on 6 different accounts on 4 different machines (4 different  
versions of zsh, 3 different OSes)

I'm constantly finding that I've added an alias on one account and want to  
use it on the others, but the machines are not such that I could make them  
identical (at least two different $USERNAMEs, and on 2 of the machines I  
don't have root access.... one of them I don't even have access to 'cc' or  
'gcc' to build a more recent version of zsh).

Does anyone else have advice on trying to keep these 4 separate accounts  
somewhat in sync, so I don't have to re-write every new function over and  
over again?

I once tried a 'zlocal' file that I would keep all my local configurations,  
and keep everything else current, but that didn't work.

I'm getting to the point of dumping everything in one big .zshenv (global  
config files are empty in most of these cases) but that's not really what I'd  
prefer... I like having my aliases/bindkeys/completions/etc all in different  
files, in case of an editing mistake in one file it is easier to locate and  
fix.

TjL



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: How do *you* sync your zsh config files?
@ 1999-04-12 14:03 Jay Sekora
  0 siblings, 0 replies; 7+ messages in thread
From: Jay Sekora @ 1999-04-12 14:03 UTC (permalink / raw)
  To: zsh-users

For a while (well before I started using zsh) I was using a Makefile to
generate my dotfiles.  Mostly it just concatenated pieces from
subdirectories, based partly on hostname.  So I had a subdirectory with
files like aliases.work, aliases.home, aliases, aliases.aelfric (where
aelfric was a hostname) and so on, and the right ones would be picked
out and concatenated into my (ick!) .tcshrc in the right place, along
with all the other goodies.  (I also had stuff to generate menus for
several window managers with the same clients.)

Because the Makefile knew how to pick out the right pieces for the host
I was on (I had separate Makefiles for home and work, so they had that
part hardcoded in, and then the chose other stuff based on hostname.  I
also had a per-account preamble, if I remember correctly.) I could just
keep that directory synched across accounts and type "make" in my home
directory whenever I changed anything.

Nowadays, I might use wget or something like that to grab components
from a central machine over the Web, and ask the user (presenting a
diff) before updating files, but at the time I was just ftp'ing the
contents of that directory around.

Make is not just a programmer's tool. :-)

-j.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1999-04-16  4:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-10 23:57 How do *you* sync your zsh config files? Timothy J Luoma
1999-04-11  1:32 ` Michael Barnes
1999-04-11  5:06   ` Bart Schaefer
1999-04-12  7:40   ` David Kågedal
1999-04-15 19:22 ` Adam Spiers
1999-04-16  4:45   ` Timothy J Luoma
1999-04-12 14:03 Jay Sekora

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).