prezto/runcoms/zprofile

35 lines
1.4 KiB
Text
Raw Normal View History

2015-06-26 13:06:30 -06:00
# Sourced in login shells before .zshrc
# Commands that should be exectued only in login shells
# Do not set environment variables
# Do not define alias, functions, options, etc.
#
2015-08-04 16:17:53 -06:00
# +--------------------+-------+-------+--------+
# | | Inter | Inter | Script |
# | | Login | | |
# +====================+=======+=======+========+
# | /etc/zshenv | A | A | A |
# +--------------------+-------+-------+--------+
# | $ZDOTDIR/.zshenv | B | B | B |
# +--------------------+-------+-------+--------+
# | /etc/zprofile | C | | |
# +--------------------+-------+-------+--------+
# | $ZDOTDIR/.zprofile | D | | |
# +--------------------+-------+-------+--------+
# | /etc/zshrc | E | C | |
# +--------------------+-------+-------+--------+
# | $ZDOTDIR/.zshrc | F | D | |
# +--------------------+-------+-------+--------+
# | /etc/zlogin | G | | |
# +--------------------+-------+-------+--------+
# | $ZDOTDIR/.zlogin | H | | |
# +--------------------+-------+-------+--------+
echo $PATH | \grep -q '^/opt/'
2015-08-27 08:57:47 -06:00
if [ $? -eq 1 ]; then
echo ~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+
echo Apple put path_helper in /etc/zprofile again.
echo Just move it to /etc/zshenv.
echo ~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+
fi