configs/.bash_aliases
2022-09-19 17:56:31 -05:00

52 lines
1.6 KiB
Bash
Executable File

# Application management
alias inst='sudo apt-get install -y'
alias update='sudo apt-get update -y && sudo apt-get upgrade -y'
alias pacs='apt-cache search'
alias burn='sudo apt-get autoremove'
# General
alias ~='cd ~/'
alias ll='ls -AlhGrti'
alias lsa='ls -lah'
alias lt='ls --human-readable --size -1 -S --classify'
alias gh='history|grep'
alias cpv='rsync -ah --info=progress2'
alias please='sudo'
alias fucking='sudo'
alias cat='batcat'
alias src='source .bashrc'
alias svim='sudo vim'
alias ding='ping -i 5 -a'
alias yabs='curl -sL yabs.sh | bash'
# Utilities
alias pang='ping -i 10 -v -a'
alias mnts='mount | column -t'
alias h='history'
alias hgrep='history | grep'
alias doco='docker-compose'
alias rscad='sudo systemctl restart caddy'
alias docprune='docker image prune && docker network prune && docker container prune && docker volume prune'
# Tmux
alias mux='tmux new -s main'
alias ta='tmux -2 a -t'
alias tn='tmux -2 new -s'
alias bin='nc termbin.com 9999'
nquick (){ sudo nmap -sV -T4 -O -F --version-light $@; }
# Misc
alias wttr='ansiweather -l belleville,illinois -u imperial -s false'
rtfm() { help $@ || info $@ || man $@ || curl "http://cheat.sh/$@"; }
extip(){ ip=$(curl -s http://api.ipify.org);
echo "Public IP address is $ip"
}
ch() { curl "http://cheat.sh/$@"; }
alias sysres='sudo systemctl restart'
alias sysup='sudo systemctl enable --now'
alias sysdn='sudo systemctl disable --now'
notica() { curl --data "d:$*" "https://noti.toad.city/?VFvu53" ; }
pb () { curl --form-string "token=azvux186smiqcg4v3zzpzmu1xz7z2y" --form-string "user=P12LJMVt9iJNID7qjDh9G2zCzLO49j" --form-string "message=$*" -s https://api.pushover.net/1/messages.json>/dev/null; }