zsh/browser.zsh
2018-09-04 07:44:03 +02:00

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