First commit of reworked installer

This commit is contained in:
Kaladin Light 2016-04-19 14:01:55 -04:00
parent 3fb4f4e995
commit 53565dd4fe
13 changed files with 1116 additions and 2 deletions

18
scripts/bash-completion Normal file
View file

@ -0,0 +1,18 @@
_pivpn()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="debug add list revoke uninstall help"
if [[ ${cur} == -* ]] ; then
opts="-a -d -l -r -h -u"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
fi
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
}
complete -F _pivpn pivpn