43 lines
797 B
Bash
43 lines
797 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
|
|
|
|
# Sources
|
|
source /usr/bin/virtualenvwrapper.sh
|
|
|
|
# Functions
|
|
dfa() {
|
|
echo "dumbfuck alert"
|
|
}
|
|
vpn() {
|
|
if [ "$1" == "on" ]; then
|
|
cmd="c --p2p"
|
|
elif [ "$1" == "off" ]; then
|
|
cmd="d"
|
|
elif [ "$1" == "status" ]; then
|
|
cmd="s"
|
|
else
|
|
echo "Please pass an argument: on, off, status"
|
|
return
|
|
fi
|
|
doas protonvpn "$cmd"
|
|
}
|
|
ip_check() {
|
|
curl wgetip.net/n
|
|
}
|
|
# Aliases
|
|
alias reboot="doas reboot"
|
|
alias shutdown="doas shutdown -h now"
|
|
alias sudo=dfa
|
|
alias scrot="$HOME/.local/bin/scrot.sh $@"
|
|
alias vpn=vpn
|
|
alias extip=ip_check
|