xxh-plugin-zsh-ohmyzsh
xxh-plugin-zsh-ohmyzsh copied to clipboard
Fix the +e plugins not working
Replace plugins with plugins_ in env. variable and then eval it as list variable in pluginrc.zsh
Hello @alfred-chan and welcome! I can repeat this issue:
$ xxh myhost +s zsh +e plugins='(git ubuntu)' +v +e ZSH_THEME='clean'
...
...
Entrypoint env: raw=plugins=KGdpdCB1YnVudHUp, name=plugins, value=(git ubuntu)
Entrypoint env: raw=ZSH_THEME=Y2xlYW4=, name=ZSH_THEME, value=clean
Load plugin /home/user/.xxh/.xxh/shells/xxh-shell-zsh/build/zsh-bin/bin/../../../../../plugins/xxh-plugin-zsh-ohmyzsh/build/pluginrc.zsh
[oh-my-zsh] plugin '(git ubuntu)' not found
myhost:~/ $ echo $plugins
(git ubuntu)
myhost:~/ $
But it looks like the problem is not in this repo. This should be fixed in the zsh shell entrypoint:
https://github.com/xxh/xxh-shell-zsh/blob/master/entrypoint.sh#L56-L66
I'm not the active zsh user so please check my logic.