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

Allow for :DirenvAllow command #10

Open
jalcine opened this issue Jul 6, 2018 · 4 comments
Open

Allow for :DirenvAllow command #10

jalcine opened this issue Jul 6, 2018 · 4 comments

Comments

@jalcine
Copy link

jalcine commented Jul 6, 2018

Similar to how :DirenvExport works, being able to do :DirenvAllow after editing a .envrc file would be handy for those of us not eager to spin up a little terminal window each time configuration is changed.

@zimbatm
Copy link
Member

zimbatm commented Jul 7, 2018

👍 maybe @delphinus would be up for implementing this or yourself?

@jalcine
Copy link
Author

jalcine commented Jul 7, 2018 via email

@zimbatm
Copy link
Member

zimbatm commented Jul 7, 2018

great! looking forward to the PR

@timokau
Copy link

timokau commented Nov 18, 2019

Related:

When vim is running and I change the .envrc it sometimes shows a warning (mentioning that I need to allow) and sometimes it doesn't. I have no issue with opening a terminal to allow the changes, but it would be nice if there was a reliable notification.

Then when I do open a terminal and direnv allow, vim still won't reload the environment (probably because DirChanged is not triggered). Maybe direnv could somehow trigger a change on direnv allow. Something like date -Ins > .direnv-update && rm .direnv-update might work, though there could be race conditions.

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

No branches or pull requests

3 participants