dotfiles/.config/shell/aliases.sh

29 lines
635 B
Bash
Raw Normal View History

2021-07-04 22:37:08 -04:00
# From https://mastodon.xyz/@CarlCravens/105758509287927276
alias clear='clear; tput cup $LINES 0'
2021-07-10 10:16:08 -04:00
alias camoff='sudo modprobe -r uvcvideo' # sudo rmmod -f uvcvideo
alias camon='sudo modprobe uvcvideo'
2021-09-02 10:34:04 -04:00
alias clip="xclip -sel clip"
2021-08-08 20:22:41 -04:00
ahbh(){
git rev-list --left-right --count $(git remote show origin | sed -n '/HEAD branch/s/.*: //p')...$(git branch --show-current)
}
2021-07-21 15:21:49 -04:00
alias pu='git push'
alias st='git st'
2021-07-24 10:24:23 -04:00
alias src_common='source ~/.config/shell/start.sh'
2021-07-06 15:21:27 -04:00
foldersize(){
du -sh $@
}
2021-07-04 22:37:08 -04:00
tmm(){
if [ -z $1 ]; then
tmux attach-session -t 0 || tmux
else
tmux attach-session -t $1 || tmux new-session -t $1 || tmux
fi
}