configs/.bash_aliases

53 lines
1.7 KiB
Bash
Raw Normal View History

2021-05-19 07:03:21 +00:00
# Application management
2021-05-19 04:40:08 +00:00
alias inst='sudo apt-get install -y'
alias update='sudo apt-get update -y && sudo apt-get upgrade -y'
2021-05-18 18:14:51 +00:00
alias pacs='apt-cache search'
2021-05-19 04:40:08 +00:00
alias burn='sudo apt-get autoremove'
2021-05-18 18:14:51 +00:00
2021-05-19 07:03:21 +00:00
# General
2021-05-18 18:14:51 +00:00
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'
2021-06-02 19:41:20 +00:00
alias fucking='sudo'
2021-05-24 18:04:53 +00:00
alias cat='batcat'
alias src='source .bashrc'
2022-08-01 18:03:26 +00:00
alias svim='sudo vim'
alias ding='ping -i 5 -a'
2022-09-19 22:56:31 +00:00
alias yabs='curl -sL yabs.sh | bash'
2021-05-18 18:14:51 +00:00
2021-05-19 07:03:21 +00:00
# Utilities
alias pang='ping -i 10 -v -a'
alias mnts='mount | column -t'
2021-05-24 18:11:13 +00:00
alias h='history'
alias hgrep='history | grep'
2022-08-01 18:03:26 +00:00
alias doco='docker-compose'
alias rscad='sudo systemctl restart caddy'
alias docprune='docker image prune && docker network prune && docker container prune && docker volume prune'
2021-05-19 07:03:21 +00:00
# Tmux
2021-05-18 18:14:51 +00:00
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 $@; }
2021-05-19 07:03:21 +00:00
# Misc
alias wttr='ansiweather -l belleville,illinois -u imperial -s false'
2021-05-24 18:08:29 +00:00
rtfm() { help $@ || info $@ || man $@ || curl "http://cheat.sh/$@"; }
2021-06-02 19:53:58 +00:00
extip(){ ip=$(curl -s http://api.ipify.org);
echo "Public IP address is $ip"
}
2021-06-02 19:53:58 +00:00
ch() { curl "http://cheat.sh/$@"; }
2022-08-01 18:03:26 +00:00
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; }
2022-10-11 03:04:44 +00:00
alias archbox='docker exec -it --user archivebox archivebox_archivebox_1 archivebox'