zsh alias to function
This commit is contained in:
parent
89daf17b92
commit
251e88a000
@ -88,7 +88,6 @@ alias wget='wget -c'
|
||||
# alias myip='curl ipinfo.io/ip'
|
||||
alias myip='dig +short myip.opendns.com @resolver1.opendns.com'
|
||||
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) <<<'
|
||||
alias ip='ip -c'
|
||||
alias fastping='ping -c 100 -i 0.1'
|
||||
|
||||
|
||||
@ -294,3 +294,8 @@ sha() {
|
||||
shasum -a 256 | head -c 64
|
||||
fi
|
||||
}
|
||||
|
||||
weather() {
|
||||
local city="${1}"
|
||||
curl "wttr.in/${city}" 2>/dev/null | head -n -1
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user