resticprofile
resticprofile copied to clipboard
improve zsh shell completion
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.
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.