2016-11-07 20:57:18 +00:00
|
|
|
eval $(thefuck --alias)
|
2018-03-24 20:40:03 +00:00
|
|
|
eval "$(fasd --init auto)"
|
2016-11-07 20:57:18 +00:00
|
|
|
|
|
|
|
# git aliases
|
|
|
|
alias gs="git status"
|
|
|
|
alias gd="git diff"
|
|
|
|
gh() {
|
|
|
|
if [ $# -eq 1 ]; then
|
2018-01-06 15:12:41 +00:00
|
|
|
command git clone git@github.com:RealOrangeOne/${1} --recursive && cd ${1}
|
2016-11-07 20:57:18 +00:00
|
|
|
else
|
2018-01-06 15:12:41 +00:00
|
|
|
command git clone git@github.com:${1}/${2} --recursive && cd ${2}
|
2016-11-07 20:57:18 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-10-26 10:46:06 +01:00
|
|
|
git-cleanup() {
|
2018-10-03 18:51:27 +01:00
|
|
|
command git checkout master
|
|
|
|
command git branch --merged | grep -v '*' | xargs -n 1 git branch -D
|
|
|
|
command git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
|
|
|
|
command git remote prune origin
|
|
|
|
command git checkout -
|
2017-10-26 10:46:06 +01:00
|
|
|
}
|
|
|
|
|
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
|
2018-10-08 17:00:01 +01:00
|
|
|
alias serve="/usr/bin/python3 -m http.server"
|
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"
|
2018-02-19 14:06:50 +00:00
|
|
|
alias clip="xclip -selection clipboard"
|
2018-03-22 19:38:06 +00:00
|
|
|
alias cl="climate"
|
2018-12-03 22:00:17 +00:00
|
|
|
alias tmux-cleanup="tmux list-sessions | grep -v attached | cut -d: -f1 | xargs -t -n1 tmux kill-session -t"
|
2019-04-14 21:13:49 +01:00
|
|
|
alias lock-screen="xdotool key 'Super_L+l'"
|