GitHub PullRequestReviewCommentEvent at 2014-10-10 17:12:53
Repository: prezto
Actor: sorin-ionescu
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/comments/18717984","id":18717984,"diff_hunk":"@@ -0,0 +1,107 @@\n+#\n+# The oh-my-zsh cloud theme ported to prezto\n+#\n+# Authors:\n+# Kevin Laude <nerfyoda@gmail.com>\n+#\n+# Usage:\n+# This prompt's prefix symbol and colors are customizable:\n+#\n+#   prompt cloud [<symbol>] [<color1>] [<color2>]\n+#\n+# In ~/.zpreztorc:\n+#   zstyle ':prezto:module:prompt' theme 'cloud' ['<symbol>'] ['<color1>'] ['<color2>']\n+#\n+# If these options are not provided, the symbol defaults to ☁ with colors cyan\n+# and green.\n+#\n+# Screenshots:\n+#   http://i.imgur.com/mJCZ8rE.png\n+#\n+\n+# Load dependencies.\n+pmodload 'helper'\n+\n+function prompt_cloud_precmd {\n+  setopt LOCAL_OPTIONS\n+  unsetopt XTRACE KSH_ARRAYS\n+\n+  # Get Git repository information.\n+  if (( $+functions[git-info] )); then\n+      git-info\n+  fi\n+}\n+\n+function prompt_cloud_help {\n+  cat <<EOT\n+This prompt's prefix symbol and colors are customizable:\n+\n+  prompt cloud [<symbol>] [<color1>] [<color2>]\n+\n+In ~/.zpreztorc:\n+  zstyle ':prezto:module:prompt' theme 'cloud' ['<symbol>'] ['<color1>'] ['<color2>']\n+\n+If these options are not provided, the symbol defaults to ☁ with colors cyan\n+and green.\n+EOT\n+}\n+\n+function prompt_cloud_preview {\n+  if (( $# > 0 )); then\n+    prompt_preview_theme 'cloud' \"$@\"\n+  else\n+    prompt_preview_theme 'cloud'\n+    print\n+    prompt_preview_theme 'cloud' \"✯\"\n+    print\n+    prompt_preview_theme 'cloud' \">\" \"yellow\" \"red\"\n+  fi\n+}\n+\n+function prompt_cloud_setup {\n+  setopt LOCAL_OPTIONS\n+  unsetopt XTRACE KSH_ARRAYS\n+  prompt_opts=(cr percent subst)\n+\n+  # Set the theme prefix to a cloud or to the user's given characters.\n+  if [[ -n \"$1\" ]]; then\n+    prefix=$1","path":"modules/prompt/functions/prompt_cloud_setup","position":68,"original_position":68,"commit_id":"190da12501aecd32c210e53ff2bfcd378c2911e7","original_commit_id":"190da12501aecd32c210e53ff2bfcd378c2911e7","user":{"login":"sorin-ionescu","id":93816,"avatar_url":"https://avatars.githubusercontent.com/u/93816?v=2","gravatar_id":"","url":"https://api.github.com/users/sorin-ionescu","html_url":"https://github.com/sorin-ionescu","followers_url":"https://api.github.com/users/sorin-ionescu/followers","following_url":"https://api.github.com/users/sorin-ionescu/following{/other_user}","gists_url":"https://api.github.com/users/sorin-ionescu/gists{/gist_id}","starred_url":"https://api.github.com/users/sorin-ionescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorin-ionescu/subscriptions","organizations_url":"https://api.github.com/users/sorin-ionescu/orgs","repos_url":"https://api.github.com/users/sorin-ionescu/repos","events_url":"https://api.github.com/users/sorin-ionescu/events{/privacy}","received_events_url":"https://api.github.com/users/sorin-ionescu/received_events","type":"User","site_admin":false},"body":"You might want to quote `$1` just in case.","created_at":"2014-10-10T17:12:53Z","updated_at":"2014-10-10T17:12:53Z","html_url":"https://github.com/sorin-ionescu/prezto/pull/661#discussion_r18717984","pull_request_url":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/661","_links":{"self":{"href":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/comments/18717984"},"html":{"href":"https://github.com/sorin-ionescu/prezto/pull/661#discussion_r18717984"},"pull_request":{"href":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/661"}}},"pull_request":{"url":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/661","id":20289293,"html_url":"https://github.com/sorin-ionescu/prezto/pull/661","diff_url":"https://github.com/sorin-ionescu/prezto/pull/661.diff","patch_url":"https://github.com/sorin-ionescu/prezto/pull/661.patch","issue_url":"https://api.github.com/repos/sorin-ionescu/prezto/issues/661","number":661,"state":"open","locked":false,"title":"Port the oh-my-zsh cloud theme to prezto.","user":{"login":"klaude","id":45157,"avatar_url":"https://avatars.githubusercontent.com/u/45157?v=2","gravatar_id":"","url":"https://api.github.com/users/klaude","html_url":"https://github.com/klaude","followers_url":"https://api.github.com/users/klaude/followers","following_url":"https://api.github.com/users/klaude/following{/other_user}","gists_url":"https://api.github.com/users/klaude/gists{/gist_id}","starred_url":"https://api.github.com/users/klaude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klaude/subscriptions","organizations_url":"https://api.github.com/users/klaude/orgs","repos_url":"https://api.github.com/users/klaude/repos","events_url":"https://api.github.com/users/klaude/events{/privacy}","received_events_url":"https://api.github.com/users/klaude/received_events","type":"User","site_admin":false},"body":"I recently switched from oh-my-zsh to prezto. I love it, but I missed my old theme, so I ported it over. Maybe y'all will have a use for it too. \r\n\r\nThis is a port of oh-my-zsh's [cloud theme](https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/cloud.zsh-theme) to prezto. The prompts are the same as the omz version, but instead of defining the prompt's prefix in the `ZSH_THEME_CLOUD_PREFIX` environment variable it's done via the config. That seemed like a more prezto-ish way to do it. Hope y'all like it.\r\n\r\nThe original oh-my-zsh version:\r\n![Original Screenshot](https://camo.githubusercontent.com/97f24b7ff6670393f4414d81532e1431ef4fbe7c/687474703a2f2f662e636c2e6c792f6974656d732f31346635383037653838373131323264396665302f636c6f75642e706e67 \"Original Screenshot\")\r\n\r\nThe ported prezto version:\r\n![Ported Screenshot](http://i.imgur.com/mJCZ8rE.png \"Ported Screenshot\")","created_at":"2014-08-26T06:02:52Z","updated_at":"2014-10-10T17:12:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16ccf67dd7769cfcb5085cb07af88547ce26a27a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/661/commits","review_comments_url":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/661/comments","review_comment_url":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/comments/{number}","comments_url":"https://api.github.com/repos/sorin-ionescu/prezto/issues/661/comments","statuses_url":"https://api.github.com/repos/sorin-ionescu/prezto/statuses/190da12501aecd32c210e53ff2bfcd378c2911e7","head":{"label":"klaude:port_omz_cloud_theme","ref":"port_omz_cloud_theme","sha":"190da12501aecd32c210e53ff2bfcd378c2911e7","user":{"login":"klaude","id":45157,"avatar_url":"https://avatars.githubusercontent.com/u/45157?v=2","gravatar_id":"","url":"https://api.github.com/users/klaude","html_url":"https://github.com/klaude","followers_url":"https://api.github.com/users/klaude/followers","following_url":"https://api.github.com/users/klaude/following{/other_user}","gists_url":"https://api.github.com/users/klaude/gists{/gist_id}","starred_url":"https://api.github.com/users/klaude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klaude/subscriptions","organizations_url":"https://api.github.com/users/klaude/orgs","repos_url":"https://api.github.com/users/klaude/repos","events_url":"https://api.github.com/users/klaude/events{/privacy}","received_events_url":"https://api.github.com/users/klaude/received_events","type":"User","site_admin":false},"repo":{"id":23340355,"name":"prezto","full_name":"klaude/prezto","owner":{"login":"klaude","id":45157,"avatar_url":"https://avatars.githubusercontent.com/u/45157?v=2","gravatar_id":"","url":"https://api.github.com/users/klaude","html_url":"https://github.com/klaude","followers_url":"https://api.github.com/users/klaude/followers","following_url":"https://api.github.com/users/klaude/following{/other_user}","gists_url":"https://api.github.com/users/klaude/gists{/gist_id}","starred_url":"https://api.github.com/users/klaude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klaude/subscriptions","organizations_url":"https://api.github.com/users/klaude/orgs","repos_url":"https://api.github.com/users/klaude/repos","events_url":"https://api.github.com/users/klaude/events{/privacy}","received_events_url":"https://api.github.com/users/klaude/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/klaude/prezto","description":"The configuration framework for Zsh","fork":true,"url":"https://api.github.com/repos/klaude/prezto","forks_url":"https://api.github.com/repos/klaude/prezto/forks","keys_url":"https://api.github.com/repos/klaude/prezto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/klaude/prezto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/klaude/prezto/teams","hooks_url":"https://api.github.com/repos/klaude/prezto/hooks","issue_events_url":"https://api.github.com/repos/klaude/prezto/issues/events{/number}","events_url":"https://api.github.com/repos/klaude/prezto/events","assignees_url":"https://api.github.com/repos/klaude/prezto/assignees{/user}","branches_url":"https://api.github.com/repos/klaude/prezto/branches{/branch}","tags_url":"https://api.github.com/repos/klaude/prezto/tags","blobs_url":"https://api.github.com/repos/klaude/prezto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/klaude/prezto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/klaude/prezto/git/refs{/sha}","trees_url":"https://api.github.com/repos/klaude/prezto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/klaude/prezto/statuses/{sha}","languages_url":"https://api.github.com/repos/klaude/prezto/languages","stargazers_url":"https://api.github.com/repos/klaude/prezto/stargazers","contributors_url":"https://api.github.com/repos/klaude/prezto/contributors","subscribers_url":"https://api.github.com/repos/klaude/prezto/subscribers","subscription_url":"https://api.github.com/repos/klaude/prezto/subscription","commits_url":"https://api.github.com/repos/klaude/prezto/commits{/sha}","git_commits_url":"https://api.github.com/repos/klaude/prezto/git/commits{/sha}","comments_url":"https://api.github.com/repos/klaude/prezto/comments{/number}","issue_comment_url":"https://api.github.com/repos/klaude/prezto/issues/comments/{number}","contents_url":"https://api.github.com/repos/klaude/prezto/contents/{+path}","compare_url":"https://api.github.com/repos/klaude/prezto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/klaude/prezto/merges","archive_url":"https://api.github.com/repos/klaude/prezto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/klaude/prezto/downloads","issues_url":"https://api.github.com/repos/klaude/prezto/issues{/number}","pulls_url":"https://api.github.com/repos/klaude/prezto/pulls{/number}","milestones_url":"https://api.github.com/repos/klaude/prezto/milestones{/number}","notifications_url":"https://api.github.com/repos/klaude/prezto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/klaude/prezto/labels{/name}","releases_url":"https://api.github.com/repos/klaude/prezto/releases{/id}","created_at":"2014-08-26T05:49:54Z","updated_at":"2014-08-25T17:13:28Z","pushed_at":"2014-08-27T02:33:09Z","git_url":"git://github.com/klaude/prezto.git","ssh_url":"git@github.com:klaude/prezto.git","clone_url":"https://github.com/klaude/prezto.git","svn_url":"https://github.com/klaude/prezto","homepage":"","size":1710,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sorin-ionescu:master","ref":"master","sha":"36ade25eb647a5b96f848c0495e8a402e7cda71c","user":{"login":"sorin-ionescu","id":93816,"avatar_url":"https://avatars.githubusercontent.com/u/93816?v=2","gravatar_id":"","url":"https://api.github.com/users/sorin-ionescu","html_url":"https://github.com/sorin-ionescu","followers_url":"https://api.github.com/users/sorin-ionescu/followers","following_url":"https://api.github.com/users/sorin-ionescu/following{/other_user}","gists_url":"https://api.github.com/users/sorin-ionescu/gists{/gist_id}","starred_url":"https://api.github.com/users/sorin-ionescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorin-ionescu/subscriptions","organizations_url":"https://api.github.com/users/sorin-ionescu/orgs","repos_url":"https://api.github.com/users/sorin-ionescu/repos","events_url":"https://api.github.com/users/sorin-ionescu/events{/privacy}","received_events_url":"https://api.github.com/users/sorin-ionescu/received_events","type":"User","site_admin":false},"repo":{"id":1173522,"name":"prezto","full_name":"sorin-ionescu/prezto","owner":{"login":"sorin-ionescu","id":93816,"avatar_url":"https://avatars.githubusercontent.com/u/93816?v=2","gravatar_id":"","url":"https://api.github.com/users/sorin-ionescu","html_url":"https://github.com/sorin-ionescu","followers_url":"https://api.github.com/users/sorin-ionescu/followers","following_url":"https://api.github.com/users/sorin-ionescu/following{/other_user}","gists_url":"https://api.github.com/users/sorin-ionescu/gists{/gist_id}","starred_url":"https://api.github.com/users/sorin-ionescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorin-ionescu/subscriptions","organizations_url":"https://api.github.com/users/sorin-ionescu/orgs","repos_url":"https://api.github.com/users/sorin-ionescu/repos","events_url":"https://api.github.com/users/sorin-ionescu/events{/privacy}","received_events_url":"https://api.github.com/users/sorin-ionescu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sorin-ionescu/prezto","description":"The configuration framework for Zsh","fork":false,"url":"https://api.github.com/repos/sorin-ionescu/prezto","forks_url":"https://api.github.com/repos/sorin-ionescu/prezto/forks","keys_url":"https://api.github.com/repos/sorin-ionescu/prezto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sorin-ionescu/prezto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sorin-ionescu/prezto/teams","hooks_url":"https://api.github.com/repos/sorin-ionescu/prezto/hooks","issue_events_url":"https://api.github.com/repos/sorin-ionescu/prezto/issues/events{/number}","events_url":"https://api.github.com/repos/sorin-ionescu/prezto/events","assignees_url":"https://api.github.com/repos/sorin-ionescu/prezto/assignees{/user}","branches_url":"https://api.github.com/repos/sorin-ionescu/prezto/branches{/branch}","tags_url":"https://api.github.com/repos/sorin-ionescu/prezto/tags","blobs_url":"https://api.github.com/repos/sorin-ionescu/prezto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sorin-ionescu/prezto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sorin-ionescu/prezto/git/refs{/sha}","trees_url":"https://api.github.com/repos/sorin-ionescu/prezto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sorin-ionescu/prezto/statuses/{sha}","languages_url":"https://api.github.com/repos/sorin-ionescu/prezto/languages","stargazers_url":"https://api.github.com/repos/sorin-ionescu/prezto/stargazers","contributors_url":"https://api.github.com/repos/sorin-ionescu/prezto/contributors","subscribers_url":"https://api.github.com/repos/sorin-ionescu/prezto/subscribers","subscription_url":"https://api.github.com/repos/sorin-ionescu/prezto/subscription","commits_url":"https://api.github.com/repos/sorin-ionescu/prezto/commits{/sha}","git_commits_url":"https://api.github.com/repos/sorin-ionescu/prezto/git/commits{/sha}","comments_url":"https://api.github.com/repos/sorin-ionescu/prezto/comments{/number}","issue_comment_url":"https://api.github.com/repos/sorin-ionescu/prezto/issues/comments/{number}","contents_url":"https://api.github.com/repos/sorin-ionescu/prezto/contents/{+path}","compare_url":"https://api.github.com/repos/sorin-ionescu/prezto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sorin-ionescu/prezto/merges","archive_url":"https://api.github.com/repos/sorin-ionescu/prezto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sorin-ionescu/prezto/downloads","issues_url":"https://api.github.com/repos/sorin-ionescu/prezto/issues{/number}","pulls_url":"https://api.github.com/repos/sorin-ionescu/prezto/pulls{/number}","milestones_url":"https://api.github.com/repos/sorin-ionescu/prezto/milestones{/number}","notifications_url":"https://api.github.com/repos/sorin-ionescu/prezto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sorin-ionescu/prezto/labels{/name}","releases_url":"https://api.github.com/repos/sorin-ionescu/prezto/releases{/id}","created_at":"2010-12-16T08:07:04Z","updated_at":"2014-10-10T14:49:22Z","pushed_at":"2014-10-10T04:12:23Z","git_url":"git://github.com/sorin-ionescu/prezto.git","ssh_url":"git@github.com:sorin-ionescu/prezto.git","clone_url":"https://github.com/sorin-ionescu/prezto.git","svn_url":"https://github.com/sorin-ionescu/prezto","homepage":"","size":9470,"stargazers_count":2875,"watchers_count":2875,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1282,"mirror_url":null,"open_issues_count":38,"forks":1282,"open_issues":38,"watchers":2875,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/661"},"html":{"href":"https://github.com/sorin-ionescu/prezto/pull/661"},"issue":{"href":"https://api.github.com/repos/sorin-ionescu/prezto/issues/661"},"comments":{"href":"https://api.github.com/repos/sorin-ionescu/prezto/issues/661/comments"},"review_comments":{"href":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/661/comments"},"review_comment":{"href":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/sorin-ionescu/prezto/pulls/661/commits"},"statuses":{"href":"https://api.github.com/repos/sorin-ionescu/prezto/statuses/190da12501aecd32c210e53ff2bfcd378c2911e7"}}}}