configs/.bash_aliases

43 lines
1.1 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'
alias ding='ping -i 5 -a'
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'
2021-11-08 22:03:26 +00:00
alias netdis='sudo netdiscover -S -f -i eno1'
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/$@"; }