From 86b51fc94f547db31a3f437ebe76a364b2f2a5c1 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Sat, 4 Jul 2020 11:14:33 +0300 Subject: [PATCH] adding vpn and ip check aliases --- bashrc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index d347634..180288e 100644 --- a/bashrc +++ b/bashrc @@ -14,7 +14,22 @@ export WORKON_HOME=~/.local/virtualenvs dfa() { echo "dumbfuck alert" } - +vpn() { + if [ "$1" == "on" ]; then + doas protonvpn c --p2p + elif [ "$1" == "off" ]; then + doas protonvpn d + elif [ "$1" == "status" ]; then + doas protonvpn s + else + echo "Please pass an argument: on, off, status" + fi +} +ip_check() { + curl wgetip.net/n +} # Aliases alias sudo=dfa alias scrot="$HOME/.local/bin/scrot.sh $@" +alias vpn=vpn +alias extip=ip_check