根据提示,我下载了文件
https://raw.githubusercontent.com/tmuxinator/tmuxinator/master/completion/tmuxinator.zsh
进入/usr/local/share/zsh/site-functions/_tmuxinator
(文件路径),但自动完成不起作用。
然后我在下面的文件中获取文件~/.zshrc
,它也不起作用。
. /usr/local/share/zsh/site-functions/_tmuxinator
我的配置环境是:
- zsh:zsh 5.8 (x86_64-suse-linux-gnu)
- tmuxinator:tmuxinator 2.0.1
我使用oh-my-zsh
zsh 环境和 rbenv 来安装 tmuxinator。
我系统中的 fpath 环境变量是:
/home/run/.oh-my-zsh/plugins/git /home/run/.oh-my-zsh/functions /home/run/.oh-my-zsh/completions /usr/local/share/zsh/site-functions /usr/share/zsh/site-functions /usr/share/zsh//functions/Calendar /usr/share/zsh//functions/Chpwd /usr/share/zsh//functions/Completion /usr/share/zsh//functions/Completion/Base /usr/share/zsh//functions/Completion/Linux /usr/share/zsh//functions/Completion/Unix /usr/share/zsh//functions/Completion/X /usr/share/zsh//functions/Completion/Zsh /usr/share/zsh//functions/Completion/openSUSE /usr/share/zsh//functions/Exceptions /usr/share/zsh//functions/MIME /usr/share/zsh//functions/Math /usr/share/zsh//functions/Misc /usr/share/zsh//functions/Newuser /usr/share/zsh//functions/Prompts /usr/share/zsh//functions/TCP /usr/share/zsh//functions/VCS_Info /usr/share/zsh//functions/VCS_Info/Backends /usr/share/zsh//functions/Zftp /usr/share/zsh//functions/Zle /etc/zsh_completion.d
其中包括目录/usr/local/share/zsh/site-functions
。