{"action":"created","comment":{"url":"https://api.github.com/repos/creationix/nvm/pulls/comments/30989271","id":30989271,"diff_hunk":"@@ -177,6 +177,26 @@ nvm_check_global_modules() {\n   fi\n }\n \n+nvm_bash_completion() {\n+  NVM_PROFILE=$(nvm_detect_profile)\n+  case \"$NVM_PROFILE\" in \\","path":"install.sh","position":6,"original_position":6,"commit_id":"fb44b9c3145991cf596e0cfc1cda07e95d995b88","original_commit_id":"fb44b9c3145991cf596e0cfc1cda07e95d995b88","user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"body":"My mistake - the `\\` isn't needed here, but it is needed after each of the pipes below","created_at":"2015-05-25T17:47:28Z","updated_at":"2015-05-25T17:47:28Z","html_url":"https://github.com/creationix/nvm/pull/753#discussion_r30989271","pull_request_url":"https://api.github.com/repos/creationix/nvm/pulls/753","_links":{"self":{"href":"https://api.github.com/repos/creationix/nvm/pulls/comments/30989271"},"html":{"href":"https://github.com/creationix/nvm/pull/753#discussion_r30989271"},"pull_request":{"href":"https://api.github.com/repos/creationix/nvm/pulls/753"}}},"pull_request":{"url":"https://api.github.com/repos/creationix/nvm/pulls/753","id":36083063,"html_url":"https://github.com/creationix/nvm/pull/753","diff_url":"https://github.com/creationix/nvm/pull/753.diff","patch_url":"https://github.com/creationix/nvm/pull/753.patch","issue_url":"https://api.github.com/repos/creationix/nvm/issues/753","number":753,"state":"open","locked":false,"title":"Install bash programmble completions for bash/zsh","user":{"login":"PeterDaveHello","id":3691490,"avatar_url":"https://avatars.githubusercontent.com/u/3691490?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDaveHello","html_url":"https://github.com/PeterDaveHello","followers_url":"https://api.github.com/users/PeterDaveHello/followers","following_url":"https://api.github.com/users/PeterDaveHello/following{/other_user}","gists_url":"https://api.github.com/users/PeterDaveHello/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDaveHello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDaveHello/subscriptions","organizations_url":"https://api.github.com/users/PeterDaveHello/orgs","repos_url":"https://api.github.com/users/PeterDaveHello/repos","events_url":"https://api.github.com/users/PeterDaveHello/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDaveHello/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-23T06:14:53Z","updated_at":"2015-05-25T17:47:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eac1dedbf4a1fe17b63957814498b8ee0ff50cdd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/creationix/nvm/pulls/753/commits","review_comments_url":"https://api.github.com/repos/creationix/nvm/pulls/753/comments","review_comment_url":"https://api.github.com/repos/creationix/nvm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/753/comments","statuses_url":"https://api.github.com/repos/creationix/nvm/statuses/fb44b9c3145991cf596e0cfc1cda07e95d995b88","head":{"label":"PeterDaveHelloKitchen:bash_completion","ref":"bash_completion","sha":"fb44b9c3145991cf596e0cfc1cda07e95d995b88","user":{"login":"PeterDaveHelloKitchen","id":12481047,"avatar_url":"https://avatars.githubusercontent.com/u/12481047?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDaveHelloKitchen","html_url":"https://github.com/PeterDaveHelloKitchen","followers_url":"https://api.github.com/users/PeterDaveHelloKitchen/followers","following_url":"https://api.github.com/users/PeterDaveHelloKitchen/following{/other_user}","gists_url":"https://api.github.com/users/PeterDaveHelloKitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDaveHelloKitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDaveHelloKitchen/subscriptions","organizations_url":"https://api.github.com/users/PeterDaveHelloKitchen/orgs","repos_url":"https://api.github.com/users/PeterDaveHelloKitchen/repos","events_url":"https://api.github.com/users/PeterDaveHelloKitchen/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDaveHelloKitchen/received_events","type":"Organization","site_admin":false},"repo":{"id":36108339,"name":"nvm","full_name":"PeterDaveHelloKitchen/nvm","owner":{"login":"PeterDaveHelloKitchen","id":12481047,"avatar_url":"https://avatars.githubusercontent.com/u/12481047?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDaveHelloKitchen","html_url":"https://github.com/PeterDaveHelloKitchen","followers_url":"https://api.github.com/users/PeterDaveHelloKitchen/followers","following_url":"https://api.github.com/users/PeterDaveHelloKitchen/following{/other_user}","gists_url":"https://api.github.com/users/PeterDaveHelloKitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDaveHelloKitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDaveHelloKitchen/subscriptions","organizations_url":"https://api.github.com/users/PeterDaveHelloKitchen/orgs","repos_url":"https://api.github.com/users/PeterDaveHelloKitchen/repos","events_url":"https://api.github.com/users/PeterDaveHelloKitchen/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDaveHelloKitchen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PeterDaveHelloKitchen/nvm","description":"Node Version Manager - Simple bash script to manage multiple active node.js versions","fork":true,"url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm","forks_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/forks","keys_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/teams","hooks_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/hooks","issue_events_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/issues/events{/number}","events_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/events","assignees_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/assignees{/user}","branches_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/branches{/branch}","tags_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/tags","blobs_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/statuses/{sha}","languages_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/languages","stargazers_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/stargazers","contributors_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/contributors","subscribers_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/subscribers","subscription_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/subscription","commits_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/contents/{+path}","compare_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/merges","archive_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/downloads","issues_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/issues{/number}","pulls_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/pulls{/number}","milestones_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/milestones{/number}","notifications_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/labels{/name}","releases_url":"https://api.github.com/repos/PeterDaveHelloKitchen/nvm/releases{/id}","created_at":"2015-05-23T05:30:19Z","updated_at":"2015-05-23T05:30:20Z","pushed_at":"2015-05-25T11:41:19Z","git_url":"git://github.com/PeterDaveHelloKitchen/nvm.git","ssh_url":"git@github.com:PeterDaveHelloKitchen/nvm.git","clone_url":"https://github.com/PeterDaveHelloKitchen/nvm.git","svn_url":"https://github.com/PeterDaveHelloKitchen/nvm","homepage":"","size":4946,"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":"creationix:master","ref":"master","sha":"a539cba11edfb46ed34c76a9f1a59ef48b392b32","user":{"login":"creationix","id":89353,"avatar_url":"https://avatars.githubusercontent.com/u/89353?v=3","gravatar_id":"","url":"https://api.github.com/users/creationix","html_url":"https://github.com/creationix","followers_url":"https://api.github.com/users/creationix/followers","following_url":"https://api.github.com/users/creationix/following{/other_user}","gists_url":"https://api.github.com/users/creationix/gists{/gist_id}","starred_url":"https://api.github.com/users/creationix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creationix/subscriptions","organizations_url":"https://api.github.com/users/creationix/orgs","repos_url":"https://api.github.com/users/creationix/repos","events_url":"https://api.github.com/users/creationix/events{/privacy}","received_events_url":"https://api.github.com/users/creationix/received_events","type":"User","site_admin":false},"repo":{"id":612230,"name":"nvm","full_name":"creationix/nvm","owner":{"login":"creationix","id":89353,"avatar_url":"https://avatars.githubusercontent.com/u/89353?v=3","gravatar_id":"","url":"https://api.github.com/users/creationix","html_url":"https://github.com/creationix","followers_url":"https://api.github.com/users/creationix/followers","following_url":"https://api.github.com/users/creationix/following{/other_user}","gists_url":"https://api.github.com/users/creationix/gists{/gist_id}","starred_url":"https://api.github.com/users/creationix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creationix/subscriptions","organizations_url":"https://api.github.com/users/creationix/orgs","repos_url":"https://api.github.com/users/creationix/repos","events_url":"https://api.github.com/users/creationix/events{/privacy}","received_events_url":"https://api.github.com/users/creationix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/creationix/nvm","description":"Node Version Manager - Simple bash script to manage multiple active node.js versions","fork":false,"url":"https://api.github.com/repos/creationix/nvm","forks_url":"https://api.github.com/repos/creationix/nvm/forks","keys_url":"https://api.github.com/repos/creationix/nvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/creationix/nvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/creationix/nvm/teams","hooks_url":"https://api.github.com/repos/creationix/nvm/hooks","issue_events_url":"https://api.github.com/repos/creationix/nvm/issues/events{/number}","events_url":"https://api.github.com/repos/creationix/nvm/events","assignees_url":"https://api.github.com/repos/creationix/nvm/assignees{/user}","branches_url":"https://api.github.com/repos/creationix/nvm/branches{/branch}","tags_url":"https://api.github.com/repos/creationix/nvm/tags","blobs_url":"https://api.github.com/repos/creationix/nvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/creationix/nvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/creationix/nvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/creationix/nvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/creationix/nvm/statuses/{sha}","languages_url":"https://api.github.com/repos/creationix/nvm/languages","stargazers_url":"https://api.github.com/repos/creationix/nvm/stargazers","contributors_url":"https://api.github.com/repos/creationix/nvm/contributors","subscribers_url":"https://api.github.com/repos/creationix/nvm/subscribers","subscription_url":"https://api.github.com/repos/creationix/nvm/subscription","commits_url":"https://api.github.com/repos/creationix/nvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/creationix/nvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/creationix/nvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/creationix/nvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/creationix/nvm/contents/{+path}","compare_url":"https://api.github.com/repos/creationix/nvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/creationix/nvm/merges","archive_url":"https://api.github.com/repos/creationix/nvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/creationix/nvm/downloads","issues_url":"https://api.github.com/repos/creationix/nvm/issues{/number}","pulls_url":"https://api.github.com/repos/creationix/nvm/pulls{/number}","milestones_url":"https://api.github.com/repos/creationix/nvm/milestones{/number}","notifications_url":"https://api.github.com/repos/creationix/nvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/creationix/nvm/labels{/name}","releases_url":"https://api.github.com/repos/creationix/nvm/releases{/id}","created_at":"2010-04-15T17:47:47Z","updated_at":"2015-05-25T16:46:25Z","pushed_at":"2015-05-25T11:41:21Z","git_url":"git://github.com/creationix/nvm.git","ssh_url":"git@github.com:creationix/nvm.git","clone_url":"https://github.com/creationix/nvm.git","svn_url":"https://github.com/creationix/nvm","homepage":"","size":4946,"stargazers_count":6711,"watchers_count":6711,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":655,"mirror_url":null,"open_issues_count":66,"forks":655,"open_issues":66,"watchers":6711,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/creationix/nvm/pulls/753"},"html":{"href":"https://github.com/creationix/nvm/pull/753"},"issue":{"href":"https://api.github.com/repos/creationix/nvm/issues/753"},"comments":{"href":"https://api.github.com/repos/creationix/nvm/issues/753/comments"},"review_comments":{"href":"https://api.github.com/repos/creationix/nvm/pulls/753/comments"},"review_comment":{"href":"https://api.github.com/repos/creationix/nvm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/creationix/nvm/pulls/753/commits"},"statuses":{"href":"https://api.github.com/repos/creationix/nvm/statuses/fb44b9c3145991cf596e0cfc1cda07e95d995b88"}}}}