2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
7 <title>bti-shrink-urls</title>
10 <title>bti-shrink-urls</title>
11 <date>March 2009</date>
12 <productname>bti-shrink-urls</productname>
16 <refentrytitle>bti-shrink-urls</refentrytitle>
17 <manvolnum>1</manvolnum>
18 <refmiscinfo class="version"></refmiscinfo>
22 <refname>bti-shrink-urls</refname>
23 <refpurpose>convert URLs to a shorter form using a web service</refpurpose>
28 <command>bti</command>
29 <arg><option>--escaped</option></arg>
30 <arg><option>--help</option></arg>
31 <arg><option>URL</option></arg>
35 <refsect1><title>DESCRIPTION</title>
37 bti-shrink-urls converts URLs to a shorter form using a web service.
40 Currently http://2tu.us/ (default) and http://bit.ly / http://j.mp are supported.
44 <refsect1><title>OPTIONS</title>
47 <term><option>--escaped</option></term>
50 Don't escape special characters in the URL any more, they are
51 already percent encoded.
56 <term><option>--help</option></term>
64 <term><option>URL</option></term>
67 Specify the URL to be converted. If no URL is given
68 bti-shrink-urls waits for input on stdin.
75 <refsect1><title>CONFIGURATION</title>
77 bti-shrink-urls is configured by setting some values in ~/.bti:
81 <term><option>shrink_host</option></term>
84 Possible values: 2tu.us (default), bit.ly, j.mp
89 <term><option>shrink_bitly_login</option></term>
92 API login for bit.ly, j.mp, required if shrink_host is set to bit.ly or j.mp.
93 See https://code.google.com/p/bitly-api/wiki/ApiDocumentation
98 <term><option>shrink_bitly_key</option></term>
101 API key for bit.ly, j.mp, required if shrink_host is set to bit.ly or j.mp.
102 See https://code.google.com/p/bitly-api/wiki/ApiDocumentation
109 <refsect1><title>AUTHOR</title>
110 <para>Written by Bart Trojanowski <email>bart@jukie.net</email>.</para>
113 <refsect1><title>COPYRIGHT AND LICENSE</title>
115 Copyright (C) 2009 Bart Trojanowski <email>bart@jukie.net</email>.
118 This program is free software; you can redistribute it and/or modify it
119 under the terms of the GNU General Public License as published by the
120 Free Software Foundation version 2 of the License.