Skip to content

Commit

Permalink
Merge pull request #108 from c960657/patch-1
Browse files Browse the repository at this point in the history
Expose $AUTOENV_CUR_FILE and $AUTOENV_CUR_DIR
  • Loading branch information
kennethreitz committed Jun 21, 2016
2 parents efb7e7e + 988723d commit 644903c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions activate.sh
Expand Up @@ -122,8 +122,11 @@ autoenv_source() {
typeset allexport
allexport=$(set +o | \grep allexport)
set -a
AUTOENV_CUR_FILE=$1
AUTOENV_CUR_DIR=$(dirname $1)
source "$1"
eval "$allexport"
unset AUTOENV_CUR_FILE AUTOENV_CUR_DIR
}

autoenv_cd()
Expand Down

0 comments on commit 644903c

Please sign in to comment.