Created
January 18, 2015 17:12
-
-
Save belano/fa4076056957bf9108dd to your computer and use it in GitHub Desktop.
set global variables in zsh while keeping things compatible with bash, add this to either /etc/zsh/zprofile or ~/.zprofile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# User config for login shells | |
if [ -d /etc/profile.d ]; then | |
for i in /etc/profile.d/*.sh; do | |
if [ -r $i ]; then | |
. $i | |
fi | |
done | |
unset i | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment