{"action":"created","issue":{"url":"https://api.github.com/repos/rvm/rvm/issues/3647","repository_url":"https://api.github.com/repos/rvm/rvm","labels_url":"https://api.github.com/repos/rvm/rvm/issues/3647/labels{/name}","comments_url":"https://api.github.com/repos/rvm/rvm/issues/3647/comments","events_url":"https://api.github.com/repos/rvm/rvm/issues/3647/events","html_url":"https://github.com/rvm/rvm/pull/3647","id":142081592,"number":3647,"title":"Reorder PROMPT_COMMAND hook to prevent error on Mac OS","user":{"login":"worldnamer","id":1237117,"avatar_url":"https://avatars.githubusercontent.com/u/1237117?v=3","gravatar_id":"","url":"https://api.github.com/users/worldnamer","html_url":"https://github.com/worldnamer","followers_url":"https://api.github.com/users/worldnamer/followers","following_url":"https://api.github.com/users/worldnamer/following{/other_user}","gists_url":"https://api.github.com/users/worldnamer/gists{/gist_id}","starred_url":"https://api.github.com/users/worldnamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/worldnamer/subscriptions","organizations_url":"https://api.github.com/users/worldnamer/orgs","repos_url":"https://api.github.com/users/worldnamer/repos","events_url":"https://api.github.com/users/worldnamer/events{/privacy}","received_events_url":"https://api.github.com/users/worldnamer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-19T16:56:20Z","updated_at":"2016-03-21T02:58:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rvm/rvm/pulls/3647","html_url":"https://github.com/rvm/rvm/pull/3647","diff_url":"https://github.com/rvm/rvm/pull/3647.diff","patch_url":"https://github.com/rvm/rvm/pull/3647.patch"},"body":"On Macs, in the default terminal, PROMPT_COMMAND is set to\r\n'update_terminal_cwd;' with the included trailing semi-colon. This is legal\r\nsyntax, and currently, the cd script does not handle it gracefully. Reordering\r\nthe hooks fixes the problem."},"comment":{"url":"https://api.github.com/repos/rvm/rvm/issues/comments/199090861","html_url":"https://github.com/rvm/rvm/pull/3647#issuecomment-199090861","issue_url":"https://api.github.com/repos/rvm/rvm/issues/3647","id":199090861,"user":{"login":"worldnamer","id":1237117,"avatar_url":"https://avatars.githubusercontent.com/u/1237117?v=3","gravatar_id":"","url":"https://api.github.com/users/worldnamer","html_url":"https://github.com/worldnamer","followers_url":"https://api.github.com/users/worldnamer/followers","following_url":"https://api.github.com/users/worldnamer/following{/other_user}","gists_url":"https://api.github.com/users/worldnamer/gists{/gist_id}","starred_url":"https://api.github.com/users/worldnamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/worldnamer/subscriptions","organizations_url":"https://api.github.com/users/worldnamer/orgs","repos_url":"https://api.github.com/users/worldnamer/repos","events_url":"https://api.github.com/users/worldnamer/events{/privacy}","received_events_url":"https://api.github.com/users/worldnamer/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T02:58:23Z","updated_at":"2016-03-21T02:58:23Z","body":"Works on my machine. Updated the PR!"}}