{"action":"opened","issue":{"url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3317","labels_url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3317/labels{/name}","comments_url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3317/comments","events_url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3317/events","html_url":"https://github.com/wayneeseguin/rvm/issues/3317","id":58510082,"number":3317,"title":"Run cd hook on a new terminal instance","user":{"login":"Sammidysam","id":3077078,"avatar_url":"https://avatars.githubusercontent.com/u/3077078?v=3","gravatar_id":"","url":"https://api.github.com/users/Sammidysam","html_url":"https://github.com/Sammidysam","followers_url":"https://api.github.com/users/Sammidysam/followers","following_url":"https://api.github.com/users/Sammidysam/following{/other_user}","gists_url":"https://api.github.com/users/Sammidysam/gists{/gist_id}","starred_url":"https://api.github.com/users/Sammidysam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sammidysam/subscriptions","organizations_url":"https://api.github.com/users/Sammidysam/orgs","repos_url":"https://api.github.com/users/Sammidysam/repos","events_url":"https://api.github.com/users/Sammidysam/events{/privacy}","received_events_url":"https://api.github.com/users/Sammidysam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-22T17:18:52Z","updated_at":"2015-02-22T17:18:52Z","closed_at":null,"body":"When I am using Emacs I will open a terminal with `(ansi-term \"/bin/bash\")` after I am inside of a project that will be working on.  It will then use the directory that I am in to generate which path to go to.  One of my projects uses an older Ruby version than my default on the system (2.2.0), as I like the newest stable being default, but the project requires a slightly older Ruby (2.1.5).  My Gemfile has this older version of Ruby specified.  When I am in a terminal and change directory to the project the cd hook gets correctly run and I get my correct Ruby.  However, when I start a terminal in the directory of my project I have not run cd at all so it uses the old Ruby until I run `cd .` in the terminal.  Is it at all possible to run the same cd hook when a terminal instance is just being made?"}}