resticprofile icon indicating copy to clipboard operation
resticprofile copied to clipboard

improve zsh shell completion

Open darix opened this issue 1 year ago • 1 comments

currently the generated zsh shell completion then calls the binary again to generate out the bash port. wouldnt it be easier to do something like this pseudocode as part of the golang code

bash_preamble + shared_completion_code + bash_trailer

zsh_preamble + shared_completion_code + zsh_trailer 

that way the zsh code completion wouldnt need to exec + eval again to include the common code.

darix avatar Apr 08 '24 07:04 darix

To be honest, the zsh completion is a hack at the moment. After the next release, I have the plan to overhaul the completion code as we no longer depend on restic to complete restic commands. And also powershell should get support.

When this is implemented, zsh (which is also my main shell) will get direct support.

jkellerer avatar Apr 08 '24 07:04 jkellerer