[zsh] Fix path setup

- Add setup-path function that allows resetting the path at any time.
- macOS does a dumb thing where it resets your path with some helper binary in
  /etc/zprofile. Disable GLOBAL_RCS in .zshenv so it doesn't read system init
  files.
This commit is contained in:
Eryn Wells 2018-04-14 09:41:42 -07:00
parent 7a69b98387
commit 75760856af
2 changed files with 21 additions and 8 deletions

3
zshenv
View file

@ -5,6 +5,9 @@
#
# Eryn Wells <eryn@erynwells.me>
# Don't read global startup. It messes things up...
unsetopt GLOBAL_RCS
[ -e $HOME/.env ] && source $HOME/.env
# System specific environment settings