envkey / envkey

Simple, end-to-end encrypted configuration and secrets management
https://envkey.com
MIT License
618 stars 31 forks source link

Completions in fish shell are not working #63

Open prceasar opened 1 year ago

prceasar commented 1 year ago

I have installed the fish completions using the following command: envkey completion install --shell fish

and I get this message:

Using /Users/myusername/.config/fish/config.fish Wrote backup shell file to /Users/myusername/.config/fish/config.fish.bak Installing shell autocomplete... EnvKey CLI completion was installed. It will be available after starting a new shell. But when I start a new shell I get the following error:

~/.config/fish/config.fish (line 59): command substitutions not allowed here _yargs_completions() ^^ from sourcing file ~/.config/fish/config.fish called during startup I have made sure I have the latest envkey and made sure to update my version of fish, and still see this issue.

danenania commented 1 year ago

Hi @prceasar, these completions come from the yargs command-parsing library and it seems that they are actually bash only. I'm not sure why we had the idea that we could stick them in the fish/zsh config unchanged. We'll look into this more but we may just need to remove the fish and zsh options unless there's something straightforward we can do to fix compatibility.