{"action":"created","issue":{"url":"https://api.github.com/repos/zplug/zplug/issues/226","repository_url":"https://api.github.com/repos/zplug/zplug","labels_url":"https://api.github.com/repos/zplug/zplug/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/zplug/zplug/issues/226/comments","events_url":"https://api.github.com/repos/zplug/zplug/issues/226/events","html_url":"https://github.com/zplug/zplug/issues/226","id":171191716,"number":226,"title":"zplug + prezto + tmux auto-start","user":{"login":"x1a0","id":205756,"avatar_url":"https://avatars.githubusercontent.com/u/205756?v=3","gravatar_id":"","url":"https://api.github.com/users/x1a0","html_url":"https://github.com/x1a0","followers_url":"https://api.github.com/users/x1a0/followers","following_url":"https://api.github.com/users/x1a0/following{/other_user}","gists_url":"https://api.github.com/users/x1a0/gists{/gist_id}","starred_url":"https://api.github.com/users/x1a0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1a0/subscriptions","organizations_url":"https://api.github.com/users/x1a0/orgs","repos_url":"https://api.github.com/users/x1a0/repos","events_url":"https://api.github.com/users/x1a0/events{/privacy}","received_events_url":"https://api.github.com/users/x1a0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-15T15:17:31Z","updated_at":"2016-08-26T10:37:21Z","closed_at":null,"body":"## Problem Summary\r\n\r\nI am using zplug with prezto. In my `.zshrc` I have:\r\n\r\n```\r\nzplug \"sorin-ionescu/prezto\", as:plugin, use:init.zsh, hook-build:\"ln -s $ZPLUG_ROOT/repos/sorin-ionescu/prezto ${ZDOTDIR:-$HOME}/.zprezto\"\r\n```\r\n\r\nSo `.zprezto` symlink is created. Everything works fine here.\r\n\r\nThen I try to have tmux auto-started when I ssh to my box. This is done by using tmux module of prezto: https://github.com/sorin-ionescu/prezto/tree/master/modules/tmux\r\n\r\nAfter tmux starts I got errors:\r\n\r\n```\r\nhome/x1a0/.zplug/autoload/autoload.zsh:3: __import: function definition file not found\r\n/home/x1a0/.zplug/autoload/autoload.zsh:4: __import: function definition file not found\r\n/home/x1a0/.zplug/autoload/autoload.zsh:9: __zplug::core::core::get_autoload_dirs: function definition file not found\r\n/home/x1a0/.zplug/autoload/autoload.zsh:10: __zplug::core::core::get_autoload_files: function definition file not found\r\n__add__:3: __import: function definition file not found\r\n__add__:4: __import: function definition file not found\r\n__add__:5: __import: function definition file not found\r\n__add__:6: __import: function definition file not found\r\n__add__:31: __zplug::core::core::is_cli: function definition file not found\r\n__add__:43: __zplug::core::core::zpluged: function definition file not found\r\n```\r\n\r\nI've spent some time on this. So far my finding is `$+functions[__import]` returns 1 in the tmux zsh session so it breaks everything...\r\n\r\n## System Information\r\n\r\n- `uname -a`\r\n\r\n    ```\r\nLinux vagrant-basebox 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n    ```\r\n\r\n- zsh version\r\n\r\n    ```\r\nzsh 5.1.1 (x86_64-ubuntu-linux-gnu)\r\n    ```\r\n\r\n- zplug version/commit\r\n\r\n    ```\r\n2.1.0\r\n    ```\r\n\r\n## Minimal zshrc\r\n\r\nCreate a minimal reproducing set of configurations for this issue. Please\r\nremove all unnecessary parts!\r\n\r\n```zsh\r\nsource ~/.zplug/init.zsh\r\n\r\nzplug \"sorin-ionescu/prezto\", as:plugin, use:init.zsh, hook-build:\"ln -s $ZPLUG_ROOT/repos/sorin-ionescu/prezto ${ZDOTDIR:-$HOME}/.zprezto\"\r\n\r\nzstyle ':prezto:*:*' color 'yes'\r\n\r\nzstyle ':prezto:load' pmodule \\\r\n  'environment' \\\r\n  'terminal' \\\r\n  'editor' \\\r\n  'history' \\\r\n  'directory' \\\r\n  'spectrum' \\\r\n  'utility' \\\r\n  'completion' \\\r\n  'fasd' \\\r\n  'prompt' \\\r\n  'git' \\\r\n  'tmux'\r\n\r\nzstyle ':prezto:module:tmux:auto-start' remote 'yes'\r\n\r\nzplug load --verbose\r\n```\r\n\r\n## Steps to Reproduce\r\n\r\n1. Setup as above\r\n2. Make a ssh session\r\n3. The errors show up\r\n"},"comment":{"url":"https://api.github.com/repos/zplug/zplug/issues/comments/242696307","html_url":"https://github.com/zplug/zplug/issues/226#issuecomment-242696307","issue_url":"https://api.github.com/repos/zplug/zplug/issues/226","id":242696307,"user":{"login":"b4b4r07","id":4442708,"avatar_url":"https://avatars.githubusercontent.com/u/4442708?v=3","gravatar_id":"","url":"https://api.github.com/users/b4b4r07","html_url":"https://github.com/b4b4r07","followers_url":"https://api.github.com/users/b4b4r07/followers","following_url":"https://api.github.com/users/b4b4r07/following{/other_user}","gists_url":"https://api.github.com/users/b4b4r07/gists{/gist_id}","starred_url":"https://api.github.com/users/b4b4r07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b4b4r07/subscriptions","organizations_url":"https://api.github.com/users/b4b4r07/orgs","repos_url":"https://api.github.com/users/b4b4r07/repos","events_url":"https://api.github.com/users/b4b4r07/events{/privacy}","received_events_url":"https://api.github.com/users/b4b4r07/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T10:37:21Z","updated_at":"2016-08-26T10:37:21Z","body":"Hi, @x1a0. We have released new version (v2.2.0). Please try it and then ask as if you have any problem."}}
{"actor":{"display_login":"b4b4r07"}}