{"action":"created","issue":{"url":"https://api.github.com/repos/termux/termux-packages/issues/352","repository_url":"https://api.github.com/repos/termux/termux-packages","labels_url":"https://api.github.com/repos/termux/termux-packages/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/termux/termux-packages/issues/352/comments","events_url":"https://api.github.com/repos/termux/termux-packages/issues/352/events","html_url":"https://github.com/termux/termux-packages/issues/352","id":164660890,"number":352,"title":"HOSTNAME enviromental variable is localhost not system name","user":{"login":"timoc","id":140698,"avatar_url":"https://avatars.githubusercontent.com/u/140698?v=3","gravatar_id":"","url":"https://api.github.com/users/timoc","html_url":"https://github.com/timoc","followers_url":"https://api.github.com/users/timoc/followers","following_url":"https://api.github.com/users/timoc/following{/other_user}","gists_url":"https://api.github.com/users/timoc/gists{/gist_id}","starred_url":"https://api.github.com/users/timoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timoc/subscriptions","organizations_url":"https://api.github.com/users/timoc/orgs","repos_url":"https://api.github.com/users/timoc/repos","events_url":"https://api.github.com/users/timoc/events{/privacy}","received_events_url":"https://api.github.com/users/timoc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/termux/termux-packages/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-09T10:17:04Z","updated_at":"2016-08-21T15:55:50Z","closed_at":null,"body":"This should be the system hostname, or the phones name. This name is the one usually registered  in the local dns when connected to a wifi network. having the hostname in the PS1 will make it easier for people to set up ssh connections as all they should need is \r\n```\r\nssh -p 8022 termux@<phonename>\r\n```\r\nand/or can add this to their ssh config (assuming the phone is called myphone)\r\n```\r\nHost myphone\r\n    HostName myphone\r\n    User termux\r\n    Port 8022 \r\n    ForwardX11 yes\r\n    ForwardX11Trusted yes\r\n    IdentitiesOnly yes\r\n    IdentityFile ~/.ssh/termux.key\r\n```\r\nwhich allow people to just\r\n```\r\nssh myphone\r\n```\r\nwhich works with emacs tramp for editing files on the phone filesystem"},"comment":{"url":"https://api.github.com/repos/termux/termux-packages/issues/comments/241265424","html_url":"https://github.com/termux/termux-packages/issues/352#issuecomment-241265424","issue_url":"https://api.github.com/repos/termux/termux-packages/issues/352","id":241265424,"user":{"login":"Exaeta","id":2097010,"avatar_url":"https://avatars.githubusercontent.com/u/2097010?v=3","gravatar_id":"","url":"https://api.github.com/users/Exaeta","html_url":"https://github.com/Exaeta","followers_url":"https://api.github.com/users/Exaeta/followers","following_url":"https://api.github.com/users/Exaeta/following{/other_user}","gists_url":"https://api.github.com/users/Exaeta/gists{/gist_id}","starred_url":"https://api.github.com/users/Exaeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exaeta/subscriptions","organizations_url":"https://api.github.com/users/Exaeta/orgs","repos_url":"https://api.github.com/users/Exaeta/repos","events_url":"https://api.github.com/users/Exaeta/events{/privacy}","received_events_url":"https://api.github.com/users/Exaeta/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T15:55:50Z","updated_at":"2016-08-21T15:55:50Z","body":"Add the following to `~/.bash_profile`:\r\n```\r\nGREEN=\"\\[$(tput setaf 2)\\]\"\r\nRESET=\"\\[$(tput sgr0)\\]\"\r\n\r\nexport PS1=\"${GREEN}\\$(id -n -u)@\\$(getprop net.hostname):\\$(pwd)${RESET}\\$ \"\r\n```"}}
{"actor":{"display_login":"Exaeta"}}