Move some system-specific settings to their corresponding env files
This commit is contained in:
parent
076c483a7c
commit
c77765dfa2
3 changed files with 20 additions and 22 deletions
17
env.darwin
17
env.darwin
|
@ -1,7 +1,20 @@
|
|||
# vim: set ft=zsh:
|
||||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
[[ -d "$HOME/Library/Python/2.7/bin" ]]
|
||||
&& path=("$HOME/Library/Python/2.7/bin" $path)
|
||||
[[ -d "/usr/local/share/python3" ]] \
|
||||
&& path+=("/usr/local/share/python3")
|
||||
|
||||
&& path+=("/usr/local/share/python3")
|
||||
export PATH
|
||||
|
||||
|
||||
py27local="$HOME/Library/Python/2.7/lib/python/site-packages"
|
||||
if [[ -d "$py27local" ]]; then
|
||||
if [[ ! -z $PYTHONPATH ]]; then
|
||||
PYTHONPATH=$py27local:$PYTHONPATH
|
||||
else
|
||||
PYTHONPATH=$py27local
|
||||
fi
|
||||
fi
|
||||
unset py27local
|
||||
export PYTHONPATH
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue