{"action":"opened","issue":{"url":"https://api.github.com/repos/zimbatm/direnv/issues/165","labels_url":"https://api.github.com/repos/zimbatm/direnv/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/zimbatm/direnv/issues/165/comments","events_url":"https://api.github.com/repos/zimbatm/direnv/issues/165/events","html_url":"https://github.com/zimbatm/direnv/issues/165","id":71673685,"number":165,"title":"Running a pair of commands on enter/exit of a directory.","user":{"login":"hartzell","id":312978,"avatar_url":"https://avatars.githubusercontent.com/u/312978?v=3","gravatar_id":"","url":"https://api.github.com/users/hartzell","html_url":"https://github.com/hartzell","followers_url":"https://api.github.com/users/hartzell/followers","following_url":"https://api.github.com/users/hartzell/following{/other_user}","gists_url":"https://api.github.com/users/hartzell/gists{/gist_id}","starred_url":"https://api.github.com/users/hartzell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartzell/subscriptions","organizations_url":"https://api.github.com/users/hartzell/orgs","repos_url":"https://api.github.com/users/hartzell/repos","events_url":"https://api.github.com/users/hartzell/events{/privacy}","received_events_url":"https://api.github.com/users/hartzell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-28T19:00:44Z","updated_at":"2015-04-28T19:00:44Z","closed_at":null,"body":"At work, we use [environment modules](http://en.wikipedia.org/wiki/Environment_Modules_%28software%29) to set up various environments.\r\n\r\nI'd like to be able to execute `module load something otherthing` when I enter a directory and the corresponding `module unload something otherthing` when I leave.\r\n\r\nIs there some nice clean way to hook up a pair of commands?\r\n\r\n"}}