Created
December 9, 2014 23:50
-
-
Save gmas/4defacbda5a7704904df to your computer and use it in GitHub Desktop.
auto set ENV vars when cd-ing into a dir
This file contains hidden or 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
# add to ~/.zshrc | |
function chpwd() { | |
if [ -r $PWD/.exports ]; then | |
source $PWD/.exports | |
fi | |
} | |
### .exports | |
export TZ='UTC' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment