dotfiles/.config/shell/aliases.sh

21 lines
417 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-07-21 15:21:49 -04:00
alias pu='git push'
alias st='git st'
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
}