psanford / wormhole-william

End-to-end encrypted file transfer. A magic wormhole CLI and API in Go (golang).
MIT License
1.07k stars 54 forks source link

Feature request: enable shell completions by default #108

Closed j-lakeman closed 8 months ago

j-lakeman commented 8 months ago

Upon installation, IMHO it would make sense to enable the shell completions by default for any of bash, zsh and fish present.

psanford commented 8 months ago

I don't think tools should modify shell configuration files without getting explicit consent from the user. I'd be ok adding a new cli command to install shell completions for you instead (essentially just following the instructions from wormhole-william shell-completion -h, but it would need to be clear that is what the command is doing (probably with a confirmation prompt and a list of files that will be modified showed to the user).

Its fairly common for downstream packages (dpkg, rpm) to include installation of system level shell completion files. That would also be fine with me but would need to be done on a per distribution basis.

j-lakeman commented 8 months ago

Fair enough, opened issue downstream. Thanks for clarification!