{"action":"created","issue":{"url":"https://api.github.com/repos/rycee/home-manager/issues/207","repository_url":"https://api.github.com/repos/rycee/home-manager","labels_url":"https://api.github.com/repos/rycee/home-manager/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/rycee/home-manager/issues/207/comments","events_url":"https://api.github.com/repos/rycee/home-manager/issues/207/events","html_url":"https://github.com/rycee/home-manager/issues/207","id":296120656,"number":207,"title":"zsh: oh-my-zsh plugin configuration via env vars is flawed","user":{"login":"Nadrieril","id":6783654,"avatar_url":"https://avatars3.githubusercontent.com/u/6783654?v=4","gravatar_id":"","url":"https://api.github.com/users/Nadrieril","html_url":"https://github.com/Nadrieril","followers_url":"https://api.github.com/users/Nadrieril/followers","following_url":"https://api.github.com/users/Nadrieril/following{/other_user}","gists_url":"https://api.github.com/users/Nadrieril/gists{/gist_id}","starred_url":"https://api.github.com/users/Nadrieril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nadrieril/subscriptions","organizations_url":"https://api.github.com/users/Nadrieril/orgs","repos_url":"https://api.github.com/users/Nadrieril/repos","events_url":"https://api.github.com/users/Nadrieril/events{/privacy}","received_events_url":"https://api.github.com/users/Nadrieril/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-10T18:07:26Z","updated_at":"2018-02-10T18:29:39Z","closed_at":"2018-02-10T18:24:47Z","author_association":"CONTRIBUTOR","body":"A lot of oh-my-zsh plugins can be configured by setting appropriate environment variables. The problem is that a number of those plugins expect those variables to be set *before* oh-my-zsh is loaded, and the `zsh` module loads custom env vars *after* oh-my-zsh.\r\nAn example of a such a plugin is `per-directory-history`, that will ignore changes made to `$HISTORY_BASE` after is has been loaded (see https://github.com/robbyrussell/oh-my-zsh/blob/37c2d0ddd751e15d0c87a51e2d9f9849093571dc/plugins/per-directory-history/per-directory-history.zsh#L86).\r\nCould there be a way to set some env vars before loading oh-my-zsh ?"},"comment":{"url":"https://api.github.com/repos/rycee/home-manager/issues/comments/364678637","html_url":"https://github.com/rycee/home-manager/issues/207#issuecomment-364678637","issue_url":"https://api.github.com/repos/rycee/home-manager/issues/207","id":364678637,"user":{"login":"uvNikita","id":1084748,"avatar_url":"https://avatars0.githubusercontent.com/u/1084748?v=4","gravatar_id":"","url":"https://api.github.com/users/uvNikita","html_url":"https://github.com/uvNikita","followers_url":"https://api.github.com/users/uvNikita/followers","following_url":"https://api.github.com/users/uvNikita/following{/other_user}","gists_url":"https://api.github.com/users/uvNikita/gists{/gist_id}","starred_url":"https://api.github.com/users/uvNikita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uvNikita/subscriptions","organizations_url":"https://api.github.com/users/uvNikita/orgs","repos_url":"https://api.github.com/users/uvNikita/repos","events_url":"https://api.github.com/users/uvNikita/events{/privacy}","received_events_url":"https://api.github.com/users/uvNikita/received_events","type":"User","site_admin":false},"created_at":"2018-02-10T18:29:39Z","updated_at":"2018-02-10T18:29:39Z","author_association":"COLLABORATOR","body":"Thanks for reporting the issue!\r\n\r\nI now moved session variables setting back before oh-my-zsh sourcing. I don't see the reason why this would be an issue.\r\n\r\nI moved it to the end with the thought that some plugins might override user-specified session variables, but I haven't experienced this problem myself."}}
{"actor":{"display_login":"uvNikita"}}