{"action":"created","issue":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4647","labels_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4647/labels{/name}","comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4647/comments","events_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4647/events","html_url":"https://github.com/robbyrussell/oh-my-zsh/issues/4647","id":119413679,"number":4647,"title":"Loading random theme from list of themes","user":{"login":"Gnouc","id":4304764,"avatar_url":"https://avatars.githubusercontent.com/u/4304764?v=3","gravatar_id":"","url":"https://api.github.com/users/Gnouc","html_url":"https://github.com/Gnouc","followers_url":"https://api.github.com/users/Gnouc/followers","following_url":"https://api.github.com/users/Gnouc/following{/other_user}","gists_url":"https://api.github.com/users/Gnouc/gists{/gist_id}","starred_url":"https://api.github.com/users/Gnouc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gnouc/subscriptions","organizations_url":"https://api.github.com/users/Gnouc/orgs","repos_url":"https://api.github.com/users/Gnouc/repos","events_url":"https://api.github.com/users/Gnouc/events{/privacy}","received_events_url":"https://api.github.com/users/Gnouc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T03:42:34Z","updated_at":"2015-11-30T23:03:26Z","closed_at":null,"body":"Currently, `oh-my-zsh` only allow user to load a specified theme or a random theme from all available theme.\r\n\r\nFrom user perspective, it can make some inconvenience, because some themes setting is not available in user system by default. Example with `adben` theme, I always get:\r\n```\r\nps1_fortune:2: command not found: fortune\r\n```\r\nIt would be better if user can chose which set of themes they want to load:\r\n```\r\nZSH_THEME=( robbyrussell fino agnoster )\r\n```\r\nwill make `zsh` load one of three themes in each session.\r\n\r\nIf you guys agree with this feature, I will go with a pull request."},"comment":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/comments/160790057","html_url":"https://github.com/robbyrussell/oh-my-zsh/issues/4647#issuecomment-160790057","issue_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4647","id":160790057,"user":{"login":"apjanke","id":2618447,"avatar_url":"https://avatars.githubusercontent.com/u/2618447?v=3","gravatar_id":"","url":"https://api.github.com/users/apjanke","html_url":"https://github.com/apjanke","followers_url":"https://api.github.com/users/apjanke/followers","following_url":"https://api.github.com/users/apjanke/following{/other_user}","gists_url":"https://api.github.com/users/apjanke/gists{/gist_id}","starred_url":"https://api.github.com/users/apjanke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apjanke/subscriptions","organizations_url":"https://api.github.com/users/apjanke/orgs","repos_url":"https://api.github.com/users/apjanke/repos","events_url":"https://api.github.com/users/apjanke/events{/privacy}","received_events_url":"https://api.github.com/users/apjanke/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T23:03:26Z","updated_at":"2015-11-30T23:03:26Z","body":"Sounds useful. Instead of introducing an alternate list form of `$ZSH_THEME` itself, it might be easier in terms of implementation to add a separate variable like `$ZSH_THEME_RANDOM_CANDIDATES` that modifies the behavior of `ZSH_THEME=random`. Like #3703 does for implementing the converse of this, excluding particular themes from the random selection. #3743 also has some pending changes that add `random` and blacklist support to the `theme()` function that could incorporate this as well.\r\n"}}