postmodern / chruby

Changes the current Ruby
MIT License
2.88k stars 189 forks source link

Fix system-wide config instructions for zsh. #271

Closed bjoernalbers closed 9 years ago

bjoernalbers commented 10 years ago

...as already mentioned in issue #270.

postmodern commented 9 years ago

From the /etc/profile:

# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.

zsh appears to load /etc/profile, which also loads /etc/profile.d/*.sh.

RobertAudi commented 9 years ago

zsh appears to load /etc/profile, which also loads /etc/profile.d/*.sh

@postmodern This doesn't appear to be the case in OS X.

I even grep-ed /etc and there isn't a single mention of profile.d

> sudo find /etc -type f -exec grep -H 'profile\.d' {} +

As a side note: /etc/zshenv is readonly. Not sure about the potential side-effects of making it readwrite for root.