zsh-users
 help / color / mirror / code / Atom feed
* do you use separate .zshenv and .zshrc files?
@ 2012-04-28 19:07 TJ Luoma
  2012-04-28 20:54 ` Benjamin R. Haskell
  2012-04-28 23:03 ` Bart Schaefer
  0 siblings, 2 replies; 7+ messages in thread
From: TJ Luoma @ 2012-04-28 19:07 UTC (permalink / raw)
  To: zsh-users

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?




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-04-28 23:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-28 19:07 do you use separate .zshenv and .zshrc files? TJ Luoma
2012-04-28 20:54 ` Benjamin R. Haskell
2012-04-28 21:01   ` Benjamin R. Haskell
2012-04-28 21:57   ` TJ Luoma
2012-04-28 22:25     ` Benjamin R. Haskell
2012-04-28 23:03 ` Bart Schaefer
2012-04-28 23:19   ` TJ Luoma

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