dotfiles/browser.zsh

6 lines
324 B
Bash
Raw Normal View History

2016-02-23 15:51:04 +01:00
function duckduck() { x-www-browser "https://duckduckgo.com/?q=`escape "$@"`"; }
function escape() { perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$@"; }
function google() { x-www-browser "https://www.google.de/search?q=`escape "$@"`"; }
function xmlformat () { xmllint --format "$1" | unexpand -t 2 --first-only; }