unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* move "source /etc/profile" from .zlogin to .zprofile
@ 2018-10-13 15:44 Meiyo Peng
  2018-10-14  1:33 ` Chris Marusich
  0 siblings, 1 reply; 10+ messages in thread
From: Meiyo Peng @ 2018-10-13 15:44 UTC (permalink / raw)
  To: guix-devel

Hello,

Guix's default skeletons put "source /etc/profile" into ~/.zlogin. But
/etc/profile resets the PATH environment variable, exports many other
environment variables, and source /etc/bashrc. According to
http://zsh.sourceforge.net/Intro/intro_3.html .zlogin is sourced after
.zshrc and should not be used for alias definitions, options,
environment variable settings, etc. Especially "as a general rule, it
should not change the shell environment at all". I think it's better to
source /etc/profile from ~/.zprofile.

Meiyo Peng

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

end of thread, other threads:[~2018-10-19  7:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-13 15:44 move "source /etc/profile" from .zlogin to .zprofile Meiyo Peng
2018-10-14  1:33 ` Chris Marusich
2018-10-14  1:56   ` Leo Famulari
2018-10-14  6:30     ` Chris Marusich
2018-10-14  7:58       ` Meiyo Peng
2018-10-15  9:48       ` Ludovic Courtès
2018-10-16  4:59         ` Leo Famulari
2018-10-16 11:55           ` Ludovic Courtès
2018-10-19  7:47             ` Chris Marusich
2018-10-14  3:14   ` Meiyo Peng

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).