* Where to dump all functions/compctls/etc?
@ 2004-06-09 20:54 Jarkko Maja
2004-06-09 23:05 ` Pierre HABOUZIT
0 siblings, 1 reply; 2+ messages in thread
From: Jarkko Maja @ 2004-06-09 20:54 UTC (permalink / raw)
To: zsh-users
Hi,
I googled for a little while and I'm still unsure:
where should I put my function definitions, completion
controls, environment settings etc to minimize
terminal start-up/login overhead?
I think these are obvious:
/etc/zshenv, ~/.zshenv: only most crucial system and
user env settings
/etc/logout, ~/.zlogout: stuff to be executed at
logout
Currently I have only a dozen lines of env settings at
/etc/zshenv and ~/.zshenv both, zero at /etc/zlogout
and ~/.zlogout and over 800 at ~/.zshrc
("everything"). Is there any point to move some stuff
to ~/.zprofile? Are there some cases with my current
setup where functions/compctls etc are read twice?
Any URL to a document will do also fine. (Yes, I read
man pages a couple of times, but I can't say what
would be a reason to put something to ~/.zprofile and
something to ~/.zshrc).
Thanks in advance.
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Where to dump all functions/compctls/etc?
2004-06-09 20:54 Where to dump all functions/compctls/etc? Jarkko Maja
@ 2004-06-09 23:05 ` Pierre HABOUZIT
0 siblings, 0 replies; 2+ messages in thread
From: Pierre HABOUZIT @ 2004-06-09 23:05 UTC (permalink / raw)
To: Jarkko Maja; +Cc: zsh-users
[-- Attachment #1: Type: text/plain, Size: 439 bytes --]
> Thanks in advance.
I've that at the start of my .zshrc :
autoload -U zrecompile
[ -f ~/.zshrc ] && zrecompile -p ~/.zshrc
[ -f ~/.zcompdump ] && zrecompile -p ~/.zcompdump
[ -f ~/.zshrc.zwc.old ] && rm -f ~/.zshrc.zwc.old
[ -f ~/.zcompdump.zwc.old ] && rm -f ~/.zcompdump.zwc.old
with that, if you modify your .zshrc you pay the compilation time cost.
else, it's very fast
--
Pierre Habouzit
http://www.madism.org/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-09 23:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-09 20:54 Where to dump all functions/compctls/etc? Jarkko Maja
2004-06-09 23:05 ` Pierre HABOUZIT
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).