{"action":"created","issue":{"url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/48","labels_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/48/comments","events_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/48/events","html_url":"https://github.com/twolfson/sexy-bash-prompt/issues/48","id":54561325,"number":48,"title":"sexy-bash-prompt and 'set -x'","user":{"login":"rpdelaney","id":1139517,"avatar_url":"https://avatars.githubusercontent.com/u/1139517?v=3","gravatar_id":"","url":"https://api.github.com/users/rpdelaney","html_url":"https://github.com/rpdelaney","followers_url":"https://api.github.com/users/rpdelaney/followers","following_url":"https://api.github.com/users/rpdelaney/following{/other_user}","gists_url":"https://api.github.com/users/rpdelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/rpdelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpdelaney/subscriptions","organizations_url":"https://api.github.com/users/rpdelaney/orgs","repos_url":"https://api.github.com/users/rpdelaney/repos","events_url":"https://api.github.com/users/rpdelaney/events{/privacy}","received_events_url":"https://api.github.com/users/rpdelaney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"rpdelaney","id":1139517,"avatar_url":"https://avatars.githubusercontent.com/u/1139517?v=3","gravatar_id":"","url":"https://api.github.com/users/rpdelaney","html_url":"https://github.com/rpdelaney","followers_url":"https://api.github.com/users/rpdelaney/followers","following_url":"https://api.github.com/users/rpdelaney/following{/other_user}","gists_url":"https://api.github.com/users/rpdelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/rpdelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpdelaney/subscriptions","organizations_url":"https://api.github.com/users/rpdelaney/orgs","repos_url":"https://api.github.com/users/rpdelaney/repos","events_url":"https://api.github.com/users/rpdelaney/events{/privacy}","received_events_url":"https://api.github.com/users/rpdelaney/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-01-16T10:36:33Z","updated_at":"2015-01-17T23:01:06Z","closed_at":null,"body":"`set -x` is a familiar shell option for debugging. Usually, I like to set it from the command-line before running a script to debug, as is common practice. But this causes lots of unwanted debugging output from sexy-bash-prompt because the functions it invokes also return debugging output. \r\n\r\nWould it be reasonable to add a handler to each function that checks for this flag, disables it, and then restores it before exit? I could submit a pull request to that effect."},"comment":{"url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/comments/70388336","html_url":"https://github.com/twolfson/sexy-bash-prompt/issues/48#issuecomment-70388336","issue_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/48","id":70388336,"user":{"login":"twolfson","id":902488,"avatar_url":"https://avatars.githubusercontent.com/u/902488?v=3","gravatar_id":"","url":"https://api.github.com/users/twolfson","html_url":"https://github.com/twolfson","followers_url":"https://api.github.com/users/twolfson/followers","following_url":"https://api.github.com/users/twolfson/following{/other_user}","gists_url":"https://api.github.com/users/twolfson/gists{/gist_id}","starred_url":"https://api.github.com/users/twolfson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twolfson/subscriptions","organizations_url":"https://api.github.com/users/twolfson/orgs","repos_url":"https://api.github.com/users/twolfson/repos","events_url":"https://api.github.com/users/twolfson/events{/privacy}","received_events_url":"https://api.github.com/users/twolfson/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T23:01:06Z","updated_at":"2015-01-17T23:01:06Z","body":"Alright, back. I am still on the fence about this. Can we research what other libraries do for this scenario?"}}