dotfiles/browser.zsh
2016-02-23 15:51:04 +01:00

5 lines
324 B
Bash

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; }