dotfiles/bashrc

36 lines
679 B
Bash
Raw Normal View History

2020-07-01 10:42:16 +03:00
# Exit if not interactive
2020-06-28 05:19:59 +03:00
if [[ $- != *i* ]] ; then
return
fi
2020-07-01 10:42:16 +03:00
# Environment Variables
export GIT_EDITOR="vim"
export PATH="$PATH:$HOME/.local/bin"
2020-07-01 13:44:22 +03:00
export QT_QPA_PLATFORMTHEME=kvantum
2020-07-01 10:42:16 +03:00
export VIMINIT="source $HOME/.config/vim/vimrc"
export WORKON_HOME=~/.local/virtualenvs
2020-06-28 05:19:59 +03:00
2020-07-01 10:42:16 +03:00
# Functions
2020-06-28 05:19:59 +03:00
dfa() {
echo "dumbfuck alert"
}
2020-07-04 11:14:33 +03:00
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
}
2020-07-01 10:42:16 +03:00
# Aliases
2020-06-28 05:19:59 +03:00
alias sudo=dfa
2020-07-01 13:44:22 +03:00
alias scrot="$HOME/.local/bin/scrot.sh $@"
2020-07-04 11:14:33 +03:00
alias vpn=vpn
alias extip=ip_check