{"action":"created","comment":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/comments/43794270","id":43794270,"diff_hunk":"@@ -0,0 +1,50 @@\n+#compdef desk\n+\n+#\n+# Completes available desks for `desk`\n+#\n+# Requires: desk https://github.com/jamesob/desk\n+#   Author: Michael Bøcker-Larsen (@mblarsen)\n+#\n+\n+_desk() {\n+    local state ret=1\n+    local desk_files_location desk_files\n+    local -a desks\n+\n+    # In case non-standard location is used\n+    desk_files_location=${DESK_DESKS_DIR:-~/.desk/desks}\n+    desk_files=(\"$desk_files_location\"/*.sh)\n+\n+    # Build list of files without extension\n+    for file in $desk_files; do\n+        filename=\"${file##*/}\"\n+        desks+=${filename%.*}\n+    done\n+\n+    _arguments \\\n+      '1:command:->cmds' \\\n+      '2:desk:->desk'\n+\n+    case $state in\n+        (cmds)\n+            _values \"desk commands\" \\\n+                'go[Activate a desk]' \\","path":"plugins/desk/desk.plugin.zsh","position":null,"original_position":32,"commit_id":"8f5aaa256f3f8eea14aeb55356131f4503800783","original_commit_id":"2120573783556aad0ec2aa5d8e96c9bb9209d962","user":{"login":"mblarsen","id":247048,"avatar_url":"https://avatars.githubusercontent.com/u/247048?v=3","gravatar_id":"","url":"https://api.github.com/users/mblarsen","html_url":"https://github.com/mblarsen","followers_url":"https://api.github.com/users/mblarsen/followers","following_url":"https://api.github.com/users/mblarsen/following{/other_user}","gists_url":"https://api.github.com/users/mblarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/mblarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mblarsen/subscriptions","organizations_url":"https://api.github.com/users/mblarsen/orgs","repos_url":"https://api.github.com/users/mblarsen/repos","events_url":"https://api.github.com/users/mblarsen/events{/privacy}","received_events_url":"https://api.github.com/users/mblarsen/received_events","type":"User","site_admin":false},"body":"Added","created_at":"2015-11-03T19:24:54Z","updated_at":"2015-11-03T19:24:54Z","html_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4577#discussion_r43794270","pull_request_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4577","_links":{"self":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/comments/43794270"},"html":{"href":"https://github.com/robbyrussell/oh-my-zsh/pull/4577#discussion_r43794270"},"pull_request":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4577"}}},"pull_request":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4577","id":49592684,"html_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4577","diff_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4577.diff","patch_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4577.patch","issue_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4577","number":4577,"state":"open","locked":false,"title":"Added plugin for desk","user":{"login":"mblarsen","id":247048,"avatar_url":"https://avatars.githubusercontent.com/u/247048?v=3","gravatar_id":"","url":"https://api.github.com/users/mblarsen","html_url":"https://github.com/mblarsen","followers_url":"https://api.github.com/users/mblarsen/followers","following_url":"https://api.github.com/users/mblarsen/following{/other_user}","gists_url":"https://api.github.com/users/mblarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/mblarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mblarsen/subscriptions","organizations_url":"https://api.github.com/users/mblarsen/orgs","repos_url":"https://api.github.com/users/mblarsen/repos","events_url":"https://api.github.com/users/mblarsen/events{/privacy}","received_events_url":"https://api.github.com/users/mblarsen/received_events","type":"User","site_admin":false},"body":"Added completion of available desks for [desk](https://github.com/jamesob/desk).","created_at":"2015-11-03T18:28:54Z","updated_at":"2015-11-03T19:24:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68e4121a758f38db10c6301c304e261b415af5d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4577/commits","review_comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4577/comments","review_comment_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4577/comments","statuses_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/statuses/8f5aaa256f3f8eea14aeb55356131f4503800783","head":{"label":"mblarsen:master","ref":"master","sha":"8f5aaa256f3f8eea14aeb55356131f4503800783","user":{"login":"mblarsen","id":247048,"avatar_url":"https://avatars.githubusercontent.com/u/247048?v=3","gravatar_id":"","url":"https://api.github.com/users/mblarsen","html_url":"https://github.com/mblarsen","followers_url":"https://api.github.com/users/mblarsen/followers","following_url":"https://api.github.com/users/mblarsen/following{/other_user}","gists_url":"https://api.github.com/users/mblarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/mblarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mblarsen/subscriptions","organizations_url":"https://api.github.com/users/mblarsen/orgs","repos_url":"https://api.github.com/users/mblarsen/repos","events_url":"https://api.github.com/users/mblarsen/events{/privacy}","received_events_url":"https://api.github.com/users/mblarsen/received_events","type":"User","site_admin":false},"repo":{"id":45486665,"name":"oh-my-zsh","full_name":"mblarsen/oh-my-zsh","owner":{"login":"mblarsen","id":247048,"avatar_url":"https://avatars.githubusercontent.com/u/247048?v=3","gravatar_id":"","url":"https://api.github.com/users/mblarsen","html_url":"https://github.com/mblarsen","followers_url":"https://api.github.com/users/mblarsen/followers","following_url":"https://api.github.com/users/mblarsen/following{/other_user}","gists_url":"https://api.github.com/users/mblarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/mblarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mblarsen/subscriptions","organizations_url":"https://api.github.com/users/mblarsen/orgs","repos_url":"https://api.github.com/users/mblarsen/repos","events_url":"https://api.github.com/users/mblarsen/events{/privacy}","received_events_url":"https://api.github.com/users/mblarsen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mblarsen/oh-my-zsh","description":"A delightful community-driven framework for managing your zsh configuration. Includes 200+ optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, python, etc), over 140 themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.","fork":true,"url":"https://api.github.com/repos/mblarsen/oh-my-zsh","forks_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/forks","keys_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/teams","hooks_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/hooks","issue_events_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/issues/events{/number}","events_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/events","assignees_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/assignees{/user}","branches_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/branches{/branch}","tags_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/tags","blobs_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/git/refs{/sha}","trees_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/statuses/{sha}","languages_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/languages","stargazers_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/stargazers","contributors_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/contributors","subscribers_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/subscribers","subscription_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/subscription","commits_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/commits{/sha}","git_commits_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/git/commits{/sha}","comments_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/comments{/number}","issue_comment_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/issues/comments{/number}","contents_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/contents/{+path}","compare_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/merges","archive_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/downloads","issues_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/issues{/number}","pulls_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/pulls{/number}","milestones_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/milestones{/number}","notifications_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/labels{/name}","releases_url":"https://api.github.com/repos/mblarsen/oh-my-zsh/releases{/id}","created_at":"2015-11-03T18:24:39Z","updated_at":"2015-11-03T18:24:42Z","pushed_at":"2015-11-03T19:23:06Z","git_url":"git://github.com/mblarsen/oh-my-zsh.git","ssh_url":"git@github.com:mblarsen/oh-my-zsh.git","clone_url":"https://github.com/mblarsen/oh-my-zsh.git","svn_url":"https://github.com/mblarsen/oh-my-zsh","homepage":"http://ohmyz.sh/","size":31304,"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":"robbyrussell:master","ref":"master","sha":"e44aa50301cbdb9c713193263e6c0c5a9a5798c0","user":{"login":"robbyrussell","id":257,"avatar_url":"https://avatars.githubusercontent.com/u/257?v=3","gravatar_id":"","url":"https://api.github.com/users/robbyrussell","html_url":"https://github.com/robbyrussell","followers_url":"https://api.github.com/users/robbyrussell/followers","following_url":"https://api.github.com/users/robbyrussell/following{/other_user}","gists_url":"https://api.github.com/users/robbyrussell/gists{/gist_id}","starred_url":"https://api.github.com/users/robbyrussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbyrussell/subscriptions","organizations_url":"https://api.github.com/users/robbyrussell/orgs","repos_url":"https://api.github.com/users/robbyrussell/repos","events_url":"https://api.github.com/users/robbyrussell/events{/privacy}","received_events_url":"https://api.github.com/users/robbyrussell/received_events","type":"User","site_admin":false},"repo":{"id":291137,"name":"oh-my-zsh","full_name":"robbyrussell/oh-my-zsh","owner":{"login":"robbyrussell","id":257,"avatar_url":"https://avatars.githubusercontent.com/u/257?v=3","gravatar_id":"","url":"https://api.github.com/users/robbyrussell","html_url":"https://github.com/robbyrussell","followers_url":"https://api.github.com/users/robbyrussell/followers","following_url":"https://api.github.com/users/robbyrussell/following{/other_user}","gists_url":"https://api.github.com/users/robbyrussell/gists{/gist_id}","starred_url":"https://api.github.com/users/robbyrussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbyrussell/subscriptions","organizations_url":"https://api.github.com/users/robbyrussell/orgs","repos_url":"https://api.github.com/users/robbyrussell/repos","events_url":"https://api.github.com/users/robbyrussell/events{/privacy}","received_events_url":"https://api.github.com/users/robbyrussell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robbyrussell/oh-my-zsh","description":"A delightful community-driven framework for managing your zsh configuration. Includes 200+ optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, python, etc), over 140 themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.","fork":false,"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh","forks_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/forks","keys_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/teams","hooks_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/hooks","issue_events_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/events{/number}","events_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/events","assignees_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/assignees{/user}","branches_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/branches{/branch}","tags_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/tags","blobs_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/git/refs{/sha}","trees_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/statuses/{sha}","languages_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/languages","stargazers_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/stargazers","contributors_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/contributors","subscribers_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/subscribers","subscription_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/subscription","commits_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/commits{/sha}","git_commits_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/git/commits{/sha}","comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/comments{/number}","issue_comment_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/comments{/number}","contents_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/contents/{+path}","compare_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/merges","archive_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/downloads","issues_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues{/number}","pulls_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls{/number}","milestones_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/milestones{/number}","notifications_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/labels{/name}","releases_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/releases{/id}","created_at":"2009-08-28T18:15:37Z","updated_at":"2015-11-03T19:04:19Z","pushed_at":"2015-11-03T19:23:06Z","git_url":"git://github.com/robbyrussell/oh-my-zsh.git","ssh_url":"git@github.com:robbyrussell/oh-my-zsh.git","clone_url":"https://github.com/robbyrussell/oh-my-zsh.git","svn_url":"https://github.com/robbyrussell/oh-my-zsh","homepage":"http://ohmyz.sh/","size":31304,"stargazers_count":29633,"watchers_count":29633,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8545,"mirror_url":null,"open_issues_count":623,"forks":8545,"open_issues":623,"watchers":29633,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4577"},"html":{"href":"https://github.com/robbyrussell/oh-my-zsh/pull/4577"},"issue":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4577"},"comments":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4577/comments"},"review_comments":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4577/comments"},"review_comment":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4577/commits"},"statuses":{"href":"https://api.github.com/repos/robbyrussell/oh-my-zsh/statuses/8f5aaa256f3f8eea14aeb55356131f4503800783"}}}}