Fix weather check
This commit is contained in:
parent
6d918e2d4a
commit
23fca4d56c
4
.zshrc
4
.zshrc
@ -81,10 +81,10 @@ mkdir -p "$HOME/.local/bin" && export PATH="$HOME/.local/bin:$PATH"
|
|||||||
function weather() {
|
function weather() {
|
||||||
local loc=$1
|
local loc=$1
|
||||||
if [[ -z "$loc" ]]; then
|
if [[ -z "$loc" ]]; then
|
||||||
loc="Phoenix, AZ"
|
loc="Phoenix%2C%20AZ"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -sSL "wttr.in/$loc?"
|
curl -sSL "https://wttr.in/$loc?"
|
||||||
}
|
}
|
||||||
|
|
||||||
function proj {
|
function proj {
|
||||||
|
Loading…
Reference in New Issue
Block a user