From 31448aaad46e014c3d181e5552191a1e82987c42 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Thu, 30 Apr 2020 06:18:08 +0200 Subject: [PATCH] wetter alias: use tr encoding on curl --- browser.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser.zsh b/browser.zsh index 5ac302b..cf39243 100644 --- a/browser.zsh +++ b/browser.zsh @@ -2,4 +2,4 @@ function duckduck() { elinks -dump "https://duckduckgo.com/?q=`escape "$@"`"; } function escape() { perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$@"; } function google() { elinks -dump "https://www.google.de/search?q=`escape "$@"`"; } -function wetter() { curl -H "Accept-Language: ${LANG%_*}" "https://v2.wttr.in/$@"; } +function wetter() { curl --tr-encoding -H "Accept-Language: ${LANG%_*}" "https://v2.wttr.in/$@"; }