{"action":"created","issue":{"url":"https://api.github.com/repos/Vifon/texas/issues/1","labels_url":"https://api.github.com/repos/Vifon/texas/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Vifon/texas/issues/1/comments","events_url":"https://api.github.com/repos/Vifon/texas/issues/1/events","html_url":"https://github.com/Vifon/texas/issues/1","id":88560094,"number":1,"title":"Bash prompt refresh","user":{"login":"Vifon","id":624347,"avatar_url":"https://avatars.githubusercontent.com/u/624347?v=3","gravatar_id":"","url":"https://api.github.com/users/Vifon","html_url":"https://github.com/Vifon","followers_url":"https://api.github.com/users/Vifon/followers","following_url":"https://api.github.com/users/Vifon/following{/other_user}","gists_url":"https://api.github.com/users/Vifon/gists{/gist_id}","starred_url":"https://api.github.com/users/Vifon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vifon/subscriptions","organizations_url":"https://api.github.com/users/Vifon/orgs","repos_url":"https://api.github.com/users/Vifon/repos","events_url":"https://api.github.com/users/Vifon/events{/privacy}","received_events_url":"https://api.github.com/users/Vifon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-15T22:45:04Z","updated_at":"2015-06-18T22:24:04Z","closed_at":null,"body":"Currently the working directory in Bash's prompt isn't updated until the next prompt redraw. It should be redrawn right after changing the working directory. Any advice how to solve this issue is very welcome."},"comment":{"url":"https://api.github.com/repos/Vifon/texas/issues/comments/113304604","html_url":"https://github.com/Vifon/texas/issues/1#issuecomment-113304604","issue_url":"https://api.github.com/repos/Vifon/texas/issues/1","id":113304604,"user":{"login":"Vifon","id":624347,"avatar_url":"https://avatars.githubusercontent.com/u/624347?v=3","gravatar_id":"","url":"https://api.github.com/users/Vifon","html_url":"https://github.com/Vifon","followers_url":"https://api.github.com/users/Vifon/followers","following_url":"https://api.github.com/users/Vifon/following{/other_user}","gists_url":"https://api.github.com/users/Vifon/gists{/gist_id}","starred_url":"https://api.github.com/users/Vifon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vifon/subscriptions","organizations_url":"https://api.github.com/users/Vifon/orgs","repos_url":"https://api.github.com/users/Vifon/repos","events_url":"https://api.github.com/users/Vifon/events{/privacy}","received_events_url":"https://api.github.com/users/Vifon/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T22:24:04Z","updated_at":"2015-06-18T22:24:04Z","body":"Hm... I think the working directory itself is being updated but not the `$PWD` variable. `ls` seems to list the files in the correct (changed) working directory and `pwd` prints the correct directory. Deferring the signal handlers until the next command would be a really strange thing to do.\r\n\r\nSadly, I still have no idea how to refresh Bash current state. I'm considering erasing the current prompt and reprinting it in a signal handler but this is a horrible \"solution\". And there seems to be no way to print `$PS1` just as Bash would print it normally (like `print -P` in zsh)."}}