1

dns macro

This commit is contained in:
Evan Pratten 2022-11-14 20:33:43 -05:00
parent 184f04cecf
commit 54b30fb614

View File

@ -4,11 +4,10 @@ alias la="ls -a"
alias :q="exit"
alias :wq="exit"
alias cls=clear
alias p4='ping 8.8.8.8 -c 4'
alias quickhttp='sudo python -m SimpleHTTPServer 443'
alias zshreload="source ~/.zshrc"
alias wg-easykeys="wg genkey | tee >(wg pubkey)"
alias nvim-tmp="nvim $(mktemp)"
alias flush-dns="sudo systemd-resolve --flush-caches"
# WHOIS macros
alias whois-afrinic="whois -h whois.afrinic.net"
@ -33,7 +32,11 @@ alias whois-ripe="whois -h whois.ripe.net"
# Kill via pgrep
nkill() {
kill -9 $(pgrep $1)
if [ $# != 1 ]; then
echo "Usage: nkill <name>"
else
kill -9 $(pgrep $1)
fi
}
# Makes a directory, then moves into it