3 ms·
My little custom command (HN formatting break it all so need to be nicely formatted again). alias weather=weather function weather() { if [ $# -le 2 ]; the
by nazka 4y ago
My little custom command (HN formatting break it all so need to be nicely formatted again).
alias weather=weather
function weather() {
if [ $# -le 2 ]; then
Command="wttr.in/$1"
if [ $# -eq 2 ]; then
Command="$Command,$2"
fi
fi
Command="curl ${Command// /%20}"
eval $Command
}