added browser functions

This commit is contained in:
Tobias Schmidl 2016-02-23 15:51:04 +01:00
parent eb47675940
commit 3e08f0ee45

5
browser.zsh Normal file
View file

@ -0,0 +1,5 @@
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; }