diff --git a/runcoms/zlogin b/runcoms/zlogin index 765cc7b3..0f0e35e9 100644 --- a/runcoms/zlogin +++ b/runcoms/zlogin @@ -26,7 +26,6 @@ # | $ZDOTDIR/.zlogin | H | | | # +--------------------+-------+-------+--------+ - # Execute code that does not affect the current session in the background. { # Compile the completion dump to increase startup speed. diff --git a/runcoms/zprofile b/runcoms/zprofile index e9b00558..270b8226 100644 --- a/runcoms/zprofile +++ b/runcoms/zprofile @@ -24,20 +24,11 @@ # | $ZDOTDIR/.zlogin | H | | | # +--------------------+-------+-------+--------+ -## -## Reset the path because some systems put path_helper in /etc/zprofile -## which reorders the path that I setup in ~/.zshenv -echo $PATH | \grep '^/opt/' +echo $PATH | \grep -q '^/opt/' if [ $? -eq 1 ]; then - path=( - /opt/local/bin /usr/local/bin /usr/bin /bin - /opt/local/sbin /usr/local/sbin /usr/sbin /sbin - $HOME/Library/Scripts/bin/`/usr/bin/uname -s`/`/usr/bin/uname -m` - $HOME/Library/Scripts/bin/`/usr/bin/uname -s` - $HOME/Library/Scripts/bin/ - $HOME/Library/Python/bin - /usr/X11R6/bin - /opt/local/Library/Frameworks/Python.framework/Versions/Current/bin - ) + echo ~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+ + echo Apple put path_helper in /etc/zprofile again. + echo Just move it to /etc/zshenv. + echo ~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+ fi diff --git a/runcoms/zshenv b/runcoms/zshenv index 7d32f69a..0cca1d4b 100644 --- a/runcoms/zshenv +++ b/runcoms/zshenv @@ -25,6 +25,7 @@ # | $ZDOTDIR/.zlogin | H | | | # +--------------------+-------+-------+--------+ + export LANG=en_US.UTF-8 # Setup path