I need to connect to VPN and it's quite tedious. I've tried to do one alias but for unknown reasons it failed.
I use openvpn --config client.ovpn
Then it prompts me to type in the user-name and password and the token form G auth. But I want to do it in-one line and have alias for that. like
alias vpn="openvpn --config client.ovpn -uname: r.balejik pass: fkjgndfk1fgf" is it possible to have kinda one liner? and also this alias doesn't work for some strange reasons when I sourced .bashrc . Or some bash script is a better option?