dotfiles/bashrc
2020-07-04 11:14:33 +03:00

35 lines
679 B
Bash

# Exit if not interactive
if [[ $- != *i* ]] ; then
return
fi
# Environment Variables
export GIT_EDITOR="vim"
export PATH="$PATH:$HOME/.local/bin"
export QT_QPA_PLATFORMTHEME=kvantum
export VIMINIT="source $HOME/.config/vim/vimrc"
export WORKON_HOME=~/.local/virtualenvs
# Functions
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