adding vpn and ip check aliases

This commit is contained in:
Siina Mashek 2020-07-04 11:14:33 +03:00 committed by Siina Maček
parent cdd48072fa
commit 86b51fc94f

17
bashrc
View File

@ -14,7 +14,22 @@ export WORKON_HOME=~/.local/virtualenvs
dfa() { dfa() {
echo "dumbfuck alert" 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 # Aliases
alias sudo=dfa alias sudo=dfa
alias scrot="$HOME/.local/bin/scrot.sh $@" alias scrot="$HOME/.local/bin/scrot.sh $@"
alias vpn=vpn
alias extip=ip_check