From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4660 invoked by alias); 28 Apr 2012 19:07:36 -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: 17029 Received: (qmail 1980 invoked from network); 28 Apr 2012 19:07:36 -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.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:x-mailer:mime-version:content-type :content-transfer-encoding:content-disposition; bh=tH1zxs6sThnnSXSRWUlhKnL5u7M4Hk40STAo6FL5UFM=; b=Q/VW0e0y9Lc8cj3DpDJCTfUmOqLl/zyEuvewCPy55rgemaqmyCrL5AiSGtTrC63YPl 1/VFVXqL6HjXLVF7zsgZxixPc2S4t0/jaya8jvrZsfk5gj3FUzQ3CUj+K/hjbdlXWwNW KVbg8LRC/ELv5njuOgTOqCBuZKFqW3LhjQbuYQsm0My2fMzkLlwtmr19tpwDIXrzq/RO 6OpzqLYBfQtaIeAPRYk/ZKVbQN4M7gN4vceQgSaR0X0c9BKIbIECPosfL7zIwYfsf6v6 AOe/nko+p1ylbP+90Golk8uvM8dHWaXb3uKpVF9+0/l0yZhJQyFz1+ppl6NMfX4hNovQ X9sA== Date: Sat, 28 Apr 2012 15:07:32 -0400 From: TJ Luoma To: zsh-users@zsh.org Message-ID: <4B2741961D3F4053AD4A3F6A195E2371@gmail.com> Subject: do you use separate .zshenv and .zshrc files? X-Mailer: sparrow 1.5 (build 1043) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline I keep vacillating between wanting to separate my config files into two separate files or keep them in one. If I understand ZSH correctly, I could use one file (.zshenv) and put the settings which *would* have been in .zshrc into a block like this: if [[ -o login ]] then # do stuff which would have been in .zshrc here fi The reason for doing this is that I tend to forget which file has whatever thing it is that I want to tweak/edit/change/add, and so I end up having to open one, search for what I'm looking for, realize it's in the other file, and then open the other file. ISTM that it would be easier to just keep everything in one file and separate the login stuff using the `if` statement above. Are there any drawbacks to that method?