Closed jordan-ivpn closed 4 months ago
v3.13.5 Note: autocompletion is integrated only into DEB/RPM packages. The Snap and AUR installations do not have this functionality.
Verified on v3.13.5, tested on Ubuntu 21.04 and Fedora 39, the bash completion file has been added to the DEB and RPM installers. Autocompletion works as described in the ticket.
v3.14.2 released
Feature request
Description
Using the
Tab
key in a Terminal to auto-fill commands and sub-commands is convenient and a bash completion file offers this convenience for the Bash shell.Describe the solution you'd like
First, generate a bash completion file: https://github.com/jordan-ivpn/bash-completion-generator-ivpn-cli/blob/main/bash-completion-generator-ivpn-cli.sh
Generator output is attached: ivpn-3.10.23.bash.txt
Next, add the generated file (named
ivpn
, plain text) to the DEB and RPM installers and have the file placed into:Might have to source the file (
source /usr/share/bash-completion/completions/ivpn
) or perform a system-wide bash completion update for the new file to take effect.I have checked this on Ubuntu, Arch, and OpenSuse systems. The bash completion path seems standardized.
Note: This becomes an ongoing task as part of the DEB and RPM packaging process either when the
ivpn
COMMANDS or SUB-COMMANDS change or every time a new package is created.Thanks.