From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17459 invoked by alias); 28 Apr 2012 23:19:21 -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: 17038 Received: (qmail 16262 invoked from network); 28 Apr 2012 23:19:19 -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:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition; bh=PUR4DaZ8EXV+bRJ6cZaLo4QpvCp4jyFlsFdOUX0V1uk=; b=h7NEdQcpd9ZVRA1WKKiUCbo9f+cgucpcCaSjSyZc/EGrCqWExU5iMO794X/ATJVEhM 4I5pKRgZlc8+h/clTYkZNvuQ8xJguV9s0TbSRD1OTG/xc+3IkdK89qbhJ2C3dNrvQ0ig 3ncV+uGSaMVCfzicU1IUh1wBf27JpPD34zPifHzS9qQRcqrdSpULGfug66qcyJd7gsEF 4u0WQ2t51Gzgb1zQGEedhh8CZ9vdu5zrYHLia9U8REPvLPVdwSMDCn7rAOKeNjoF1s7q T2Hs1CUl577xbSJBOwjMQ74PyAHTFLS/631UERE4K8EnFRf00BVHmJi3wSFSyVTb3ado jHMA== Date: Sat, 28 Apr 2012 19:19:17 -0400 From: TJ Luoma To: zsh-users@zsh.org Message-ID: <8A6903319E9342C992395510B5F7C3EA@gmail.com> In-Reply-To: <120428160334.ZM15454@torch.brasslantern.com> References: <4B2741961D3F4053AD4A3F6A195E2371@gmail.com> <120428160334.ZM15454@torch.brasslantern.com> Subject: Re: 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 On Saturday, April 28, 2012 at 7:03 PM, Bart Schaefer wrote: > If you have a lot of configuration it may take somewhat longer to parse > and execute the one big file when all that's going to happen is that a > large part of it will be skipped. Remember that an "if" is a compound > statement which has to all be read into memory to be sure it parses > correctly before any of it can be executed (or discarded, if the > condition is false). So a giant "if [[ -o interactive ]]; ..." may > needlessly consume memory and time. Ah, well, one of the things I have noticed lately is that zsh seems to be taking a little longer to launch, so I wonder if that's one of the reasons. I'm going to try splitting it into separate files and see if I like that better. TjL