Skip to content

Instantly share code, notes, and snippets.

@gmas
Created December 9, 2014 23:50
Show Gist options
  • Save gmas/4defacbda5a7704904df to your computer and use it in GitHub Desktop.
Save gmas/4defacbda5a7704904df to your computer and use it in GitHub Desktop.
auto set ENV vars when cd-ing into a dir
# 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