zsh/browser.zsh
2020-04-30 06:18:08 +02:00

5 lines
343 B
Bash

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 --tr-encoding -H "Accept-Language: ${LANG%_*}" "https://v2.wttr.in/$@"; }