2016-11-07 20:57:18 +00:00
|
|
|
# Load Programs
|
|
|
|
export NVM_DIR="$HOME/.nvm"
|
2018-01-01 20:26:47 +00:00
|
|
|
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
|
|
|
|
|
|
|
|
[ -d "$HOME/.nix-profile" ] && source "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
2016-11-07 20:57:18 +00:00
|
|
|
|
|
|
|
eval $(thefuck --alias)
|
|
|
|
|
2016-12-22 16:46:11 +00:00
|
|
|
export PATH="$HOME/.pyenv/bin:$PATH"
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
eval "$(pyenv virtualenv-init -)"
|
2016-11-07 20:57:18 +00:00
|
|
|
|
|
|
|
# git aliases
|
|
|
|
alias gs="git status"
|
|
|
|
alias gd="git diff"
|
|
|
|
gh() {
|
|
|
|
if [ $# -eq 1 ]; then
|
|
|
|
command git clone git@github.com:RealOrangeOne/${1} && cd ${1}
|
|
|
|
else
|
|
|
|
command git clone git@github.com:${1}/${2} && cd ${2}
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-10-26 10:46:06 +01:00
|
|
|
git-cleanup() {
|
|
|
|
command git checkout master && git branch --merged | grep -v '*' | xargs -n 1 git branch -d
|
|
|
|
command git gc --aggressive
|
|
|
|
}
|
|
|
|
|
2017-04-19 14:45:44 +01:00
|
|
|
alias t="tig"
|
|
|
|
alias ts="tig status"
|
|
|
|
|
2016-11-07 20:57:18 +00:00
|
|
|
|
|
|
|
# Gnome
|
|
|
|
gd-lock() {
|
|
|
|
sessionid=`loginctl list-sessions | grep $USER | awk '{print $1}'`
|
|
|
|
loginctl lock-session $sessionid
|
|
|
|
}
|
|
|
|
gd-unlock() {
|
|
|
|
sessionid=`loginctl list-sessions | grep $USER | awk '{print $1}'`
|
|
|
|
loginctl unlock-session $sessionid
|
|
|
|
}
|
|
|
|
alias gdl="gd-lock"
|
|
|
|
alias gdu="gd-unlock"
|
|
|
|
|
|
|
|
# miscellaneous software aliases
|
2017-10-08 19:27:15 +01:00
|
|
|
alias serve="/usr/bin/python2 -m SimpleHTTPServer"
|
2016-11-19 22:10:01 +00:00
|
|
|
alias vi="vim"
|
2016-12-27 23:34:13 +00:00
|
|
|
alias regen-ssh-conf="assh config build > ~/.ssh/config"
|
2017-11-14 09:19:53 +00:00
|
|
|
alias yolo="yaourt -Syyau --noconfirm"
|
2017-09-04 21:56:51 +01:00
|
|
|
alias sc="screenshot --to img"
|
2017-01-09 09:19:24 +00:00
|
|
|
|
2017-08-21 13:27:59 +01:00
|
|
|
recreatedb() {
|
|
|
|
dropdb $1 && createdb $1
|
|
|
|
}
|