{"action":"created","comment":{"url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/comments/28198668","id":28198668,"diff_hunk":"@@ -57,6 +57,13 @@ else\n   sexy_bash_prompt_symbol_color=\"\" # NORMAL\n fi\n \n+# Define the default prompt terminator character '$'\n+if [[ \"$UID\" = 0 ]]; then","path":".bash_prompt","position":5,"original_position":5,"commit_id":"85ed25b48ff0df695db1ea09ac5395651ee34bba","original_commit_id":"4a3fd98c540b5387f256d5ec9c3fdd4cc07cc336","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},"body":"Per Greg's Wiki, `-eq` is true if two *integers* are equal, and is s supported by `test` / `[` so it is POSIX compatible. In bash with `[[`, both `=` and `==` are equivalent and expect a glob.\r\n\r\nI'll make it a `==` for consistency.","created_at":"2015-04-11T21:43:04Z","updated_at":"2015-04-11T21:43:04Z","html_url":"https://github.com/twolfson/sexy-bash-prompt/pull/53#discussion_r28198668","pull_request_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/comments/28198668"},"html":{"href":"https://github.com/twolfson/sexy-bash-prompt/pull/53#discussion_r28198668"},"pull_request":{"href":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/53","id":33109592,"html_url":"https://github.com/twolfson/sexy-bash-prompt/pull/53","diff_url":"https://github.com/twolfson/sexy-bash-prompt/pull/53.diff","patch_url":"https://github.com/twolfson/sexy-bash-prompt/pull/53.patch","issue_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/53","number":53,"state":"open","locked":false,"title":"Prompt symbol parsimony","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},"body":"Because we define the prompt symbol as '$' or '#' according to the value of `$UID`, it is unnecessary to re-calculate it after every command. Instsead, a substitution is direct and effective.\r\n\r\nFurther, a substitution supports a `PROMPT_SYMBOL` environment variable for more customizations to the symbol.\r\n\r\nSince there is no hard-coded behavior specific to the root account, the dependency on running 'sudo' inside a unit test is dropped.","created_at":"2015-04-11T20:38:16Z","updated_at":"2015-04-11T21:43:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e11166a3ebfe5eed372e56632fe758f24ed61ff5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/53/commits","review_comments_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/53/comments","review_comment_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/53/comments","statuses_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/statuses/85ed25b48ff0df695db1ea09ac5395651ee34bba","head":{"label":"rpdelaney:prompt-symbol-parsimony","ref":"prompt-symbol-parsimony","sha":"85ed25b48ff0df695db1ea09ac5395651ee34bba","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},"repo":{"id":11750151,"name":"sexy-bash-prompt","full_name":"rpdelaney/sexy-bash-prompt","owner":{"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},"private":false,"html_url":"https://github.com/rpdelaney/sexy-bash-prompt","description":"Beautiful and sexy bash prompt with colors, git statuses, and git branches.","fork":true,"url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt","forks_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/forks","keys_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/teams","hooks_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/hooks","issue_events_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/issues/events{/number}","events_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/events","assignees_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/assignees{/user}","branches_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/branches{/branch}","tags_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/tags","blobs_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/statuses/{sha}","languages_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/languages","stargazers_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/stargazers","contributors_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/contributors","subscribers_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/subscribers","subscription_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/subscription","commits_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/contents/{+path}","compare_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/merges","archive_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/downloads","issues_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/issues{/number}","pulls_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/pulls{/number}","milestones_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/milestones{/number}","notifications_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/labels{/name}","releases_url":"https://api.github.com/repos/rpdelaney/sexy-bash-prompt/releases{/id}","created_at":"2013-07-29T21:24:44Z","updated_at":"2015-03-18T23:14:32Z","pushed_at":"2015-04-11T21:36:17Z","git_url":"git://github.com/rpdelaney/sexy-bash-prompt.git","ssh_url":"git@github.com:rpdelaney/sexy-bash-prompt.git","clone_url":"https://github.com/rpdelaney/sexy-bash-prompt.git","svn_url":"https://github.com/rpdelaney/sexy-bash-prompt","homepage":"","size":1069,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"twolfson:master","ref":"master","sha":"1e428cde45412a8f033f90f7577b6580cc5d5673","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},"repo":{"id":11276501,"name":"sexy-bash-prompt","full_name":"twolfson/sexy-bash-prompt","owner":{"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},"private":false,"html_url":"https://github.com/twolfson/sexy-bash-prompt","description":"Bash prompt with colors, git statuses, and git branches.","fork":false,"url":"https://api.github.com/repos/twolfson/sexy-bash-prompt","forks_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/forks","keys_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/teams","hooks_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/hooks","issue_events_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/events{/number}","events_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/events","assignees_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/assignees{/user}","branches_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/branches{/branch}","tags_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/tags","blobs_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/git/refs{/sha}","trees_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/statuses/{sha}","languages_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/languages","stargazers_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/stargazers","contributors_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/contributors","subscribers_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/subscribers","subscription_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/subscription","commits_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/commits{/sha}","git_commits_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/git/commits{/sha}","comments_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/comments{/number}","issue_comment_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/comments{/number}","contents_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/contents/{+path}","compare_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/merges","archive_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/downloads","issues_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues{/number}","pulls_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls{/number}","milestones_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/milestones{/number}","notifications_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/labels{/name}","releases_url":"https://api.github.com/repos/twolfson/sexy-bash-prompt/releases{/id}","created_at":"2013-07-09T08:02:48Z","updated_at":"2015-04-10T18:14:56Z","pushed_at":"2015-04-11T21:36:18Z","git_url":"git://github.com/twolfson/sexy-bash-prompt.git","ssh_url":"git@github.com:twolfson/sexy-bash-prompt.git","clone_url":"https://github.com/twolfson/sexy-bash-prompt.git","svn_url":"https://github.com/twolfson/sexy-bash-prompt","homepage":"","size":1751,"stargazers_count":391,"watchers_count":391,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":9,"forks":58,"open_issues":9,"watchers":391,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/53"},"html":{"href":"https://github.com/twolfson/sexy-bash-prompt/pull/53"},"issue":{"href":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/53"},"comments":{"href":"https://api.github.com/repos/twolfson/sexy-bash-prompt/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twolfson/sexy-bash-prompt/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/twolfson/sexy-bash-prompt/statuses/85ed25b48ff0df695db1ea09ac5395651ee34bba"}}}}