From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1326 invoked by alias); 21 Mar 2013 05:42:18 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17724 Received: (qmail 9281 invoked from network); 21 Mar 2013 05:42:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130320224152.ZM22924@torch.brasslantern.com> Date: Wed, 20 Mar 2013 22:41:52 -0700 In-reply-to: Comments: In reply to Larry Schrof "Please implement auto-handling of ${HOME}/.zsh/" (Mar 20, 7:16pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "zsh-users@zsh.org" Subject: Re: Please implement auto-handling of ${HOME}/.zsh/ MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Mar 20, 7:16pm, Larry Schrof wrote: } } First, I have to create a symlink ~/.zshenv and point it to ~/.zsh/.zshenv } Then, as the first thing to do in ~/.zsh/.zshenv, I have to do: } export ZDOTDIR=${HOME}/.zsh Why not create a ~/.zshenv that does export ZDOTDIR=${HOME}/.zsh source $ZDOTDIR/.zshenv and forget about the symlinks? Then you can even do the rest of the stuff you're suggesting: if [[ -d ~/.zsh ]]; then export ZDOTDIR=${HOME}/.zsh source $ZDOTDIR/.zshenv fi } What's the likelihood this would be implemented in the near future? As C code, small to none. Like TJ, I have a common set of config files stored on the web. (Not in Dropbox, in a source repository from which I check out to ~/.zsh, but it's the same idea.) One of the files in that repository is a script called ".installer" which writes something much like the above into ~/.zshenv (with a warning if that would clobber an existing file, etc.). I haven't yet needed to, but I've considered having .installer also write bash init files that exec zsh if zsh is not in /etc/shells. So on any new host, I just check out the .zsh directory, run .installer, resolve a conflict if it reports one, and I'm done.