[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
move "source /etc/profile" from .zlogin to .zprofile
From: |
Meiyo Peng |
Subject: |
move "source /etc/profile" from .zlogin to .zprofile |
Date: |
Sat, 13 Oct 2018 23:44:49 +0800 |
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
- move "source /etc/profile" from .zlogin to .zprofile,
Meiyo Peng <=
- Re: move "source /etc/profile" from .zlogin to .zprofile, Chris Marusich, 2018/10/13
- Re: move "source /etc/profile" from .zlogin to .zprofile, Leo Famulari, 2018/10/13
- Re: move "source /etc/profile" from .zlogin to .zprofile, Chris Marusich, 2018/10/14
- Re: move "source /etc/profile" from .zlogin to .zprofile, Meiyo Peng, 2018/10/14
- Re: move "source /etc/profile" from .zlogin to .zprofile, Ludovic Courtès, 2018/10/15
- Re: move "source /etc/profile" from .zlogin to .zprofile, Leo Famulari, 2018/10/16
- Re: move "source /etc/profile" from .zlogin to .zprofile, Ludovic Courtès, 2018/10/16
- Re: move "source /etc/profile" from .zlogin to .zprofile, Chris Marusich, 2018/10/19
Re: move "source /etc/profile" from .zlogin to .zprofile, Meiyo Peng, 2018/10/13