zsh-users
 help / color / mirror / code / Atom feed
From: Andrew Main <zefram@tao.co.uk>
To: luomat+zsh+users@luomat.peak.org (Timothy J Luoma)
Cc: zefram@tao.co.uk, zsh-users@math.gatech.edu
Subject: Re: help with understanding diffs in startup files
Date: Mon, 8 Dec 1997 12:11:02 +0000 (GMT)	[thread overview]
Message-ID: <199712081211.MAA31918@taos.demon.co.uk> (raw)
In-Reply-To: <199712081124.GAA02299@luomat.peak.org> from "Timothy J Luoma" at Dec 8, 97 06:24:17 am

Timothy J Luoma wrote:
>I've always just used one init file.  Perhaps this would be a good time to  
>learn what should go in what file.

Approximately speaking...

>Where should variables go?
>functions?

.zshenv

>aliases?
>bindkeys?

.zshrc

Actually, the division isn't that simple.  .zshenv should set up your
normal shell environment, including many options, most functions and
most variables.  .zshrc should set up your interactive shell environment,
including many options, all bindkeys and compctls, aliases, and functions
and variables that are only used interactively (such as compctl functions
and $HISTCHARS).  .zprofile (or .zlogin if you prefer) should contain
commands to run when you log in, and should not affect the environment
at all.

-zefram


  reply	other threads:[~1997-12-08 12:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-08 10:42 Timothy J Luoma
1997-12-08 11:15 ` Andrew Main
1997-12-08 11:24   ` Timothy J Luoma
1997-12-08 12:11     ` Andrew Main [this message]
1997-12-08 16:14       ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199712081211.MAA31918@taos.demon.co.uk \
    --to=zefram@tao.co.uk \
    --cc=luomat+zsh+users@luomat.peak.org \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).