gengzhengtao
V2EX  ›  Apple

Mac 修改了/etc/profile 环境变量后,重启不生效。

  •  
  •   gengzhengtao · Dec 28, 2014 · 15452 views
    This topic created in 4328 days ago, the information mentioned may be changed or developed.

    修改了一下Maven的路径,接过重启登录后,使用export与echo $PATH,路径还是原来的老路径,使用source /etc/profile立刻生效,但是重启后,依然还原到原来的路径,求解

    3 replies  •  2017-10-10 10:17:06 +08:00
    Busy
    Busy
    Dec 28, 2014❤️2
    1
    怎么都喜欢直接拿 / 开刀的
    用户目录下试试,后面的会覆盖前面的
    gengzhengtao
    gengzhengtao
    OP
    Dec 28, 2014
    2
    @Havee 可以了,zsh导致的的,修改zshrc就可以了
    santch
    santch
    Oct 10, 2017
    3
    @gengzhengtao 如何修改?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4887 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:03 · PVG 16:03 · LAX 00:03 · JFK 03:03
    ♥ Do have faith in what you're doing.