Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elvish hook outdated #902

Closed
vanor89 opened this issue Mar 1, 2022 · 1 comment · Fixed by #987
Closed

Elvish hook outdated #902

vanor89 opened this issue Mar 1, 2022 · 1 comment · Fixed by #987
Labels

Comments

@vanor89
Copy link

vanor89 commented Mar 1, 2022

Describe the bug
Elvish hook is outdated. Throws warnings

To Reproduce
Install latest version of Elvish as your shell
Install direnv
Hook elvish.

Expected behavior
No errors

Environment

  • OS: macOS Monterrey
  • Shell: Elvish
  • Direnv version latest

Additional context
Replace hook with:

set @edit:before-readline = $@edit:before-readline {
        try {
                var m = [("/usr/local/bin/direnv" export elvish | from-json)]
                if (> (count $m) 0) {
                        set m = (all $m)
                        keys $m | each {|k|
                                if $m[$k] {
                                        set-env $k $m[$k]
                                } else {
                                        unset-env $k
                                }
                        }
                }
        } except e {
                echo $e
        }
}
@vanor89 vanor89 added the Bug label Mar 1, 2022
@zimbatm
Copy link
Member

zimbatm commented Apr 21, 2022

can you try the latest master now that #896 has been merged in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants