diff options
Diffstat (limited to '.config/surfraw/elvi/pastebin')
| -rwxr-xr-x | .config/surfraw/elvi/pastebin | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.config/surfraw/elvi/pastebin b/.config/surfraw/elvi/pastebin new file mode 100755 index 0000000..a05f1c8 --- /dev/null +++ b/.config/surfraw/elvi/pastebin @@ -0,0 +1,44 @@ +#!/bin/sh +# ______ _ _ ______ _______ ______ _______ _ _ _ +# / _____)(_) (_)(_____ \ (_______)(_____ \ (_______)(_)(_)(_) +# ( (____ _ _ _____) ) _____ _____) ) _______ _ _ _ +# \____ \ | | | || __ / | ___) | __ / | ___ || || || | +# _____) )| |___| || | \ \ | | | | \ \ | | | || || || | +# (______/ \_____/ |_| |_||_| |_| |_||_| |_| \_____/ +# Surfraw - Shell Users' Revolutionary Front Rage Against the Web +# https://surfraw.alioth.debian.org +# _ _ _ _ +# __ _ ___ | |_| |__ | | ___| |_ _ _ +# / _` |/ _ \| __| '_ \| |/ _ \ __| | | | +#| (_| | (_) | |_| |_) | | __/ |_| |_| | +# \__, |\___/ \__|_.__/|_|\___|\__|\__,_| +# |___/ +# https://www.youtube.com/user/gotbletu +# https://twitter.com/gotbletu +# https://plus.google.com/+gotbletu +# https://github.com/gotbletu +# gotbleu@gmail.com +# +# DATE: Sat Feb 16 2013 +# +# DESC: Elvi to search Pastebin +# elvis: pastebin -- Search Pastebin for text files (www.pastebin.com) +. surfraw || exit 1 + +w3_usage_hook () { + cat <<EOF +Usage: $w3_argv0 [options] [search words]... +Description: + Search Pastebin (www.pastebin.com) for text files +EOF + w3_global_usage +} + +w3_config +w3_parse_args "$@" +if test -z "$w3_args"; then + w3_browse_url "https://www.pastebin.com" +else + escaped_args=`w3_url_of_arg $w3_args` + w3_browse_url "http://pastebin.com/search?cx=partner-pub-7089230323117142%3A2864958357&cof=FORID%3A10&ie=UTF-8&q=${escaped_args}" +fi |
