xxh-plugin-zsh-ohmyzsh icon indicating copy to clipboard operation
xxh-plugin-zsh-ohmyzsh copied to clipboard

Fix the +e plugins not working

Open alfred-chan opened this issue 4 years ago • 1 comments

Replace plugins with plugins_ in env. variable and then eval it as list variable in pluginrc.zsh

alfred-chan avatar Jul 08 '20 10:07 alfred-chan

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.

anki-code avatar Jul 09 '20 07:07 anki-code