zsh/browser.zsh

6 lines
326 B
Bash
Raw Normal View History

function duckduck() { elinks -dump "https://duckduckgo.com/?q=`escape "$@"`"; }
2018-01-29 16:10:37 +01:00
function escape() { perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$@"; }
function google() { elinks -dump "https://www.google.de/search?q=`escape "$@"`"; }
2018-01-29 16:10:37 +01:00
2018-09-04 07:44:03 +02:00
function wetter() { curl -H "Accept-Language: ${LANG%_*}" "https://wttr.in/$@"; }