/[debian]/bti/branches/upstream/current/bti.1
ViewVC logotype

Annotation of /bti/branches/upstream/current/bti.1

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1473 - (hide annotations)
Thu Oct 23 22:26:29 2008 UTC (12 years, 1 month ago) by gregoa
File size: 7108 byte(s)
[svn-inject] Installing original source of bti
1 gregoa 1473 .\" Title: bti
2     .\" Author: [see the "AUTHOR" section]
3     .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
4     .\" Date: May 2008
5     .\" Manual: bti
6     .\" Source: bti
7     .\" Language: English
8     .\"
9     .TH "BTI" "1" "May 2008" "bti" "bti"
10     .\" -----------------------------------------------------------------
11     .\" * (re)Define some macros
12     .\" -----------------------------------------------------------------
13     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14     .\" toupper - uppercase a string (locale-aware)
15     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16     .de toupper
17     .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
18     \\$*
19     .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
20     ..
21     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22     .\" SH-xref - format a cross-reference to an SH section
23     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24     .de SH-xref
25     .ie n \{\
26     .\}
27     .toupper \\$*
28     .el \{\
29     \\$*
30     .\}
31     ..
32     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33     .\" SH - level-one heading that works better for non-TTY output
34     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35     .de1 SH
36     .\" put an extra blank line of space above the head in non-TTY output
37     .if t \{\
38     .sp 1
39     .\}
40     .sp \\n[PD]u
41     .nr an-level 1
42     .set-an-margin
43     .nr an-prevailing-indent \\n[IN]
44     .fi
45     .in \\n[an-margin]u
46     .ti 0
47     .HTML-TAG ".NH \\n[an-level]"
48     .it 1 an-trap
49     .nr an-no-space-flag 1
50     .nr an-break-flag 1
51     \." make the size of the head bigger
52     .ps +3
53     .ft B
54     .ne (2v + 1u)
55     .ie n \{\
56     .\" if n (TTY output), use uppercase
57     .toupper \\$*
58     .\}
59     .el \{\
60     .nr an-break-flag 0
61     .\" if not n (not TTY), use normal case (not uppercase)
62     \\$1
63     .in \\n[an-margin]u
64     .ti 0
65     .\" if not n (not TTY), put a border/line under subheading
66     .sp -.6
67     \l'\n(.lu'
68     .\}
69     ..
70     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71     .\" SS - level-two heading that works better for non-TTY output
72     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73     .de1 SS
74     .sp \\n[PD]u
75     .nr an-level 1
76     .set-an-margin
77     .nr an-prevailing-indent \\n[IN]
78     .fi
79     .in \\n[IN]u
80     .ti \\n[SN]u
81     .it 1 an-trap
82     .nr an-no-space-flag 1
83     .nr an-break-flag 1
84     .ps \\n[PS-SS]u
85     \." make the size of the head bigger
86     .ps +2
87     .ft B
88     .ne (2v + 1u)
89     .if \\n[.$] \&\\$*
90     ..
91     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92     .\" BB/BE - put background/screen (filled box) around block of text
93     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
94     .de BB
95     .if t \{\
96     .sp -.5
97     .br
98     .in +2n
99     .ll -2n
100     .gcolor red
101     .di BX
102     .\}
103     ..
104     .de EB
105     .if t \{\
106     .if "\\$2"adjust-for-leading-newline" \{\
107     .sp -1
108     .\}
109     .br
110     .di
111     .in
112     .ll
113     .gcolor
114     .nr BW \\n(.lu-\\n(.i
115     .nr BH \\n(dn+.5v
116     .ne \\n(BHu+.5v
117     .ie "\\$2"adjust-for-leading-newline" \{\
118     \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
119     .\}
120     .el \{\
121     \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
122     .\}
123     .in 0
124     .sp -.5v
125     .nf
126     .BX
127     .in
128     .sp .5v
129     .fi
130     .\}
131     ..
132     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133     .\" BM/EM - put colored marker in margin next to block of text
134     .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135     .de BM
136     .if t \{\
137     .br
138     .ll -2n
139     .gcolor red
140     .di BX
141     .\}
142     ..
143     .de EM
144     .if t \{\
145     .br
146     .di
147     .ll
148     .gcolor
149     .nr BH \\n(dn
150     .ne \\n(BHu
151     \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
152     .in 0
153     .nf
154     .BX
155     .in
156     .fi
157     .\}
158     ..
159     .\" -----------------------------------------------------------------
160     .\" * set default formatting
161     .\" -----------------------------------------------------------------
162     .\" disable hyphenation
163     .nh
164     .\" disable justification (adjust text to left margin only)
165     .ad l
166     .\" -----------------------------------------------------------------
167     .\" * MAIN CONTENT STARTS HERE *
168     .\" -----------------------------------------------------------------
169     .SH "Name"
170     bti \- send a tweet to twitter\&.com or identi\&.ca from the command line
171     .SH "Synopsis"
172     .fam C
173     .HP \w'\fBbti\fR\ 'u
174     \fBbti\fR [\fB\-\-account\ account\fR] [\fB\-\-password\ password\fR] [\fB\-\-host\ HOST_NAME\fR] [\fB\-\-bash\fR] [\fB\-\-debug\fR] [\fB\-\-version\fR] [\fB\-\-help\fR]
175     .fam
176     .SH "DESCRIPTION"
177     .PP
178     bti sends a tweet message to twitter\&.com or identi\&.ca\&.
179     .SH "OPTIONS"
180     .PP
181     \fB\-\-account account\fR
182     .RS 4
183     Specify the twitter\&.com or identi\&.ca account name\&.
184     .RE
185     .PP
186     \fB\-\-password password\fR
187     .RS 4
188     Specify the password of your twitter\&.com or identi\&.ca account\&.
189     .RE
190     .PP
191     \fB\-\-host HOST_NAME\fR
192     .RS 4
193     Specify the host which you want to send your message to\&. Valid options are "twitter" to send to twitter\&.com and "identica" to send to identi\&.ca\&.
194     .sp
195     If no host is specified, the default is to send to twitter\&.com\&.
196     .RE
197     .PP
198     \fB\-\-debug\fR
199     .RS 4
200     Print a whole bunch of debugging messages to stdout\&.
201     .RE
202     .PP
203     \fB\-\-bash\fR
204     .RS 4
205     Add the working directory and a \'$\' in the tweet message to help specify it is coming from a command line\&. Don\'t put the working directory and the \'$\' in the tweet message\&.
206     .sp
207     This mode also does not report back any errors that might have happened when sending the message, and it sends it in the background, returning immediately, allowing the process to continue on\&.
208     .RE
209     .PP
210     \fB\-\-version\fR
211     .RS 4
212     Print version number\&.
213     .RE
214     .PP
215     \fB\-\-help\fR
216     .RS 4
217     Print help text\&.
218     .RE
219     .SH "DESCRIPTION"
220     .PP
221     bti provides an easy way to send tweet messages direct from the command line or any script\&. It reads the message on standard input and uses the account and password settings either from the command line options, or from a config file, to send the message out\&.
222     .PP
223     It\'s primary focus is to allow you to log everything that you type into a bash shell, in a crazy, "this is what I\'m doing right now!" type of way, letting the world follow along with you constant moving between directories and refreshing your email queue to see if there\'s anything interesting going on\&.
224     .PP
225     To hook bti up to your bash shell, export the following variable:
226     .PP
227    
228     \FC PROMPT_COMMAND=\'history 1 | sed \-e "s/^\es*[0\-9]*\es*//" | bti \-\-bash\'\F[]
229     .PP
230     This example assumes that you have the
231     \FC~/\&.bti\F[]
232     set up with your account and password information already in it, otherwise you can specify them as an option\&.
233     .SH "CONFIGURATION"
234     .PP
235     The account and password can be stored in a configuration file in the users home directory in a file named
236     \FC\&.bti\F[]
237     The structure of this file is as follows:
238     .PP
239     \fBaccount\fR
240     .RS 4
241     The twitter\&.com or identi\&.ca account name you wish to use to send this message with\&.
242     .RE
243     .PP
244     \fBpassword\fR
245     .RS 4
246     The twitter\&.com or identi\&.ca password for the account you wish to use to send this message with\&.
247     .RE
248     .PP
249     \fBhost\fR
250     .RS 4
251     The host you want to use to send the message to\&. Valid options are either "twitter" or "identica" to send to twitter\&.com or identi\&.ca respectively\&.
252     .RE
253     .PP
254     There is an example config file called
255     \FCbti\&.example\F[]
256     in the source tree that shows the structure of the file if you need an example to work off of\&.
257     .SH "AUTHOR"
258     .PP
259     Written by Greg Kroah\-Hartman
260     \FCgreg@kroah\&.com\F[]\&.

  ViewVC Help
Powered by ViewVC 1.1.26