Skip to content

Commit

Permalink
Merge pull request #24 from mingmingrr/master
Browse files Browse the repository at this point in the history
Fix crash on init: `on_post_rc` --> `on_post_init`

Closes #23
  • Loading branch information
con-f-use authored Oct 30, 2024
2 parents a8e3bec + e199b19 commit ec0e13b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ This works with python 3.7.0, xonsh 0.8.8 and direnv 2.17.0.
change log
==========

1.6.5
-----
* PR https://github.com/74th/xonsh-direnv/pull/24

1.6.4
-----
* PR https://github.com/74th/xonsh-direnv/pull/21
Expand Down Expand Up @@ -68,3 +72,4 @@ Contributors
* Andy Kipp (@anki-code, contributor)
* Alexander Sosedkin (@t184256, contributor)
* Mark Bestley (@bestlem, contributor)
* mingmingrr (@mingmingrr, contributor)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="xonsh-direnv",
version="1.6.4",
version="1.6.5",
license="MIT",
url="https://github.com/74th/xonsh-direnv",
description="direnv support for the xonsh shell",
Expand Down
4 changes: 2 additions & 2 deletions xontrib/direnv.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def __direnv():
else:
__xonsh__.env[k] = v

@events.on_post_rc
def __direnv_post_rc(**kwargs) -> None:
@events.on_post_init
def __direnv_post_init(**kwargs) -> None:
__direnv()

@events.on_chdir
Expand Down

0 comments on commit ec0e13b

Please sign in to comment.