zsh-workers
 help / color / mirror / code / Atom feed
d3f561faac2af2891c1eb1844cad542dcacaa660 blob 2744 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
 
texinode(Files)(Shell Grammar)(Invocation)(Top)
chapter(Files)
sect(Startup/Shutdown Files)
cindex(files, startup)
cindex(startup files)
cindex(files, shutdown)
cindex(shutdown files)
pindex(RCS, use of)
pindex(GLOBAL_RCS, use of)
pindex(NO_RCS, use of)
pindex(NO_GLOBAL_RCS, use of)
vindex(ZDOTDIR, use of)
cindex(zshenv)
Commands are first read from tt(/etc/zsh/zshenv); this cannot be overridden.
Subsequent behaviour is modified by the tt(RCS) and
tt(GLOBAL_RCS) options; the former affects all startup files, while the
second only affects those in the tt(/etc) directory.  If one of the options
is unset at any point, any subsequent startup file+LPAR()s+RPAR()
of the corresponding
type will not be read.  It is also possible for a file in tt($ZDOTDIR) to
re-enable tt(GLOBAL_RCS). Both tt(RCS) and tt(GLOBAL_RCS) are set by
default.

Commands are then read from tt($ZDOTDIR/.zshenv).
pindex(LOGIN, use of)
cindex(zprofile)
If the shell is a login shell, commands
are read from tt(/etc/zsh/zprofile) and then tt($ZDOTDIR/.zprofile).
cindex(zshrc)
Then, if the shell is interactive,
commands are read from tt(/etc/zsh/zshrc) and then tt($ZDOTDIR/.zshrc).
cindex(zlogin)
Finally, if the shell is a login shell, tt(/etc/zsh/zlogin) and
tt($ZDOTDIR/.zlogin) are read.

cindex(zlogout)
When a login shell exits, the files tt($ZDOTDIR/.zlogout) and then
tt(/etc/zsh/zlogout) are read.  This happens with either an explicit exit
via the tt(exit) or tt(logout) commands, or an implicit exit by reading
end-of-file from the terminal.  However, if the shell terminates due
to tt(exec)'ing another process, the logout files are not read.
These are also affected by the tt(RCS) and tt(GLOBAL_RCS) options.
Note also that the tt(RCS) option affects the saving of history files,
i.e. if tt(RCS) is unset when the shell exits, no history file will be
saved.

vindex(HOME, use of)
If tt(ZDOTDIR) is unset, tt(HOME) is used instead.
Those files listed above as being in tt(/etc) may be in another
directory, depending on the installation.

As tt(/etc/zsh/zshenv) is run for all instances of zsh, it is important that
it be kept as small as possible.  In particular, it is a good idea to
put code that does not need to be run for every single shell behind
a test of the form `tt(if [[ -o rcs ]]; then ...)' so that it will not
be executed when zsh is invoked with the `tt(-f)' option.
ifnzman(includefile(Zsh/filelist.yo))\x01

Any of these files may be pre-compiled with the tt(zcompile) builtin
command (\
ifzman(\
see zmanref(zshbuiltins)\
)\
ifnzman(\
noderef(Shell Builtin Commands)\
)\
).  If a compiled file exists (named for the original file plus the
tt(.zwc) extension) and it is newer than the original file, the compiled
file will be used instead.
debug log:

solving d3f561f ...
found d3f561f in https://inbox.vuxu.org/zsh-workers/20080222152110.GA26975@scowler.net/
found 658d09e in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 658d09e1fe0111e7c156ef1c83d7d22d741b6c2d	Doc/Zsh/files.yo

applying [1/1] https://inbox.vuxu.org/zsh-workers/20080222152110.GA26975@scowler.net/
diff --git a/Doc/Zsh/files.yo b/Doc/Zsh/files.yo
index 658d09e..d3f561f 100644

Checking patch Doc/Zsh/files.yo...
Applied patch Doc/Zsh/files.yo cleanly.

index at:
100644 d3f561faac2af2891c1eb1844cad542dcacaa660	Doc/Zsh/files.yo

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