Skip to content

Commit

Permalink
workaround 74th#2 with $UPDATE_OS_ENVIRON
Browse files Browse the repository at this point in the history
  • Loading branch information
t184256 committed Oct 30, 2019
1 parent f5e7dd8 commit a27a862
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xontrib/direnv.xsh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import json, subprocess

# workaround for https://github.com/74th/xonsh-direnv/issues/2
$UPDATE_OS_ENVIRON = True

def __direnv():
p = subprocess.Popen('direnv export json'.split(), stdout=subprocess.PIPE)
r, _ = p.communicate()
Expand Down

0 comments on commit a27a862

Please sign in to comment.