adding vpn and ip check aliases
This commit is contained in:
parent
cdd48072fa
commit
86b51fc94f
1 changed files with 16 additions and 1 deletions
17
bashrc
17
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
|
||||
|
|
Loading…
Reference in a new issue