bash: alias weather

This commit is contained in:
TheK4n 2022-08-09 22:12:51 +03:00
parent c3f82eb471
commit 8e9c466d27

View File

@ -62,7 +62,8 @@ alias ports='ss -tlnp'
alias wget='wget -c' alias wget='wget -c'
alias ping='ping -c 5' alias ping='ping -c 5'
alias myip='curl ipinfo.io/ip' alias myip='curl ipinfo.io/ip'
alias sprunge='curl -F "sprunge=<-" http://sprunge.us 2>/dev/null' alias sprunge='curl -F "sprunge=<-" http://sprunge.us 2>/dev/null' # CLI pastebin
alias weather='curl -4 wttr.in/$(cat) 2>/dev/null | head -n -1' # weather by city, gets city from stdin
# starts web server # starts web server
alias www='python3 -m http.server 8000' alias www='python3 -m http.server 8000'