Scripts to make it easier to use MullvadVPN on Gentoo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
407 B

#! /bin/bash
_vpn_completions()
{
if [ "${COMP_CWORD}" -ge "3" ]; then
return
fi
if [ "${COMP_CWORD}" -eq 1 ]; then
COMPREPLY=($(compgen -W "connect disconnect switch reconnect" "${COMP_WORDS[1]}"))
elif [ "${COMP_CWORD}" -eq 2 ]; then
COMPREPLY=($(compgen -W "ae al at au be bg br ca ch cz de dk es fi fr gb gr hk hu ie il it jp lu lv md nl no nz pl ro rs se sg us" "${COMP_WORDS[1]}"))
fi
}