IssueRaiser

Unload hook

When leaving an .envrc directory, it'd be nice to be able to run a script to undo changes that happened when entering the dir. For instance, I'm using chruby for use_ruby - so long as I switch from ruby project to ruby project, it's fine, but _leaving_ direnv dirs, I'm left with "whichever ruby I had last" - being able to `chruby 2.0` whenever direnv unloads would be handy.

Posted by nyarly on Jun 20, 2014, 6:09 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.9,500 issues0 comments

github (Other)

Unload hook

nyarlyJun 20, 2014, 6:09 PM

When leaving an .envrc directory, it'd be nice to be able to run a script to undo changes that happened when entering the dir. For instance, I'm using chruby for use_ruby - so long as I switch from ruby project to ruby project, it's fine, but _leaving_ direnv dirs, I'm left with "whichever ruby I had last" - being able to `chruby 2.0` whenever direnv unloads would be handy.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue