mullvad vpn completions
Okay well here goes my first post. I’m still not really sure how I’m going to structure these things but let’s have at it.
Here is a little snippet I wrote to autocomplete some options for the mullvad cli:
_mullvad_options='account auto-connect block-when-disconnected bridge connect disconnect factory-reset lan reconnect relay status tunnel version'
complete -W "${_mullvad_options}" 'mullvad'
I’m curious to know if there’s any templating programs that take in a structured list of args and generate an autocompletion file. This snippet is just a pretty generic array of options but these kind of files get a little more involved the larger the program. Take a look around in /usr/share/bash-completion/completions/
.