{"action":"created","issue":{"url":"https://api.github.com/repos/henrikpersson/rsub/issues/47","labels_url":"https://api.github.com/repos/henrikpersson/rsub/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/henrikpersson/rsub/issues/47/comments","events_url":"https://api.github.com/repos/henrikpersson/rsub/issues/47/events","html_url":"https://github.com/henrikpersson/rsub/issues/47","id":76411012,"number":47,"title":"implement fallback editor","user":{"login":"KES777","id":799021,"avatar_url":"https://avatars.githubusercontent.com/u/799021?v=3","gravatar_id":"","url":"https://api.github.com/users/KES777","html_url":"https://github.com/KES777","followers_url":"https://api.github.com/users/KES777/followers","following_url":"https://api.github.com/users/KES777/following{/other_user}","gists_url":"https://api.github.com/users/KES777/gists{/gist_id}","starred_url":"https://api.github.com/users/KES777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KES777/subscriptions","organizations_url":"https://api.github.com/users/KES777/orgs","repos_url":"https://api.github.com/users/KES777/repos","events_url":"https://api.github.com/users/KES777/events{/privacy}","received_events_url":"https://api.github.com/users/KES777/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-14T16:21:15Z","updated_at":"2015-09-21T09:17:18Z","closed_at":"2015-09-21T09:17:18Z","body":"I often work or remotely or direct.\r\nAnd I switch my EDITOR env variable beetween 'rsub' and local editor.\r\n\r\nPlease implement 'RSUB_FALLBACK_EDITOR' which will contain editor (or command) to run when rsub port is not accessible.\r\n\r\nThis let just work and do not think about EDITOR env"},"comment":{"url":"https://api.github.com/repos/henrikpersson/rsub/issues/comments/141921327","html_url":"https://github.com/henrikpersson/rsub/issues/47#issuecomment-141921327","issue_url":"https://api.github.com/repos/henrikpersson/rsub/issues/47","id":141921327,"user":{"login":"KES777","id":799021,"avatar_url":"https://avatars.githubusercontent.com/u/799021?v=3","gravatar_id":"","url":"https://api.github.com/users/KES777","html_url":"https://github.com/KES777","followers_url":"https://api.github.com/users/KES777/followers","following_url":"https://api.github.com/users/KES777/following{/other_user}","gists_url":"https://api.github.com/users/KES777/gists{/gist_id}","starred_url":"https://api.github.com/users/KES777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KES777/subscriptions","organizations_url":"https://api.github.com/users/KES777/orgs","repos_url":"https://api.github.com/users/KES777/repos","events_url":"https://api.github.com/users/KES777/events{/privacy}","received_events_url":"https://api.github.com/users/KES777/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T09:17:18Z","updated_at":"2015-09-21T09:17:18Z","body":"This can be done by editing `.bashrc`\r\n```\r\nif [ -z \"$SSH_CLIENT\" ]; then\r\n        export EDITOR=\"subl\"\r\nelse\r\n        export EDITOR=\"rsub --port 52698\"\r\n        export RMATE_PORT=\"52698\"\r\nfi\r\n\r\n```"}}