This repository has been archived by the owner on Jul 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
example.config
74 lines (56 loc) · 2.25 KB
/
example.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Example config for txtnish
# This is a normal shell file that gets sourced by txtnish
# How many tweets should be shown in timeline
limit=20
# Command to wrap long tweets in timeline
formatter="fmt"
# Should the timeline be shown in a pager
use_pager=1
# Use ANSI colors
use_color=1
# Always update all feeds before showing tweets. If you set this variable to 0,
# you need to update manually with the update command.
always_update=1
# How to sort tweets. This can be either ascending or descending. ascending
# starts with the oldest tweet, descending with the newest.
sort_order=descending
# Location of your twtxt file. The tweet subcommand will append to this file.
twtfile=~/twtxt.txt
# Send your nick and twturl in the http user-agent field
disclose_identity=0
# How many parallel http processes to use
max_procs=20
# Editor to tweet
editor=vi
# Pager to use, use_pager has to be also set to one
pager="less -R"
# Maximum time in seconds for an http operation. Set to zero to not set
# any timeout.
timeout=5
# Use xargs with -P. If you have a xargs without -P (it's not part of POSIX)
# and disable xargs_parallel, you probably also want to set always_update to 0,
# otherwise any command will take a long time.
xargs_parallel=1
# If set to 1, sign the twtfile with pgp. In case you are also overwriting
# the `post_tweet_hook` note that this will create a signed file in a
# temporary directory and change the value of `twtfile` accordingly.
sign_twtfile=0
# Verify pgp signatures and show the result in the timeline if set to 1. Defaults to 0.
check_signature=1
# If these paramters are set, txtnish will transfer the twtfile with ftp using
# the given user and hostname. The paramter ftp_remote_name is optional, if not
# given the basename of your twtfile is used.
ftp_user=$user
ftp_host=localhost
ftp_remote_name=twtxt.txt
# If these paramters are set, txtnish will transfer the twtfile with scp using
# the given user and hostname. The paramter scp_remote_name is optional, if not
# given the basename of your twtfile is used.
scp_user=$user
scp_host=localhost
scp_remote_name=twtxt.txt
# post_tweet_hook is called after txtnish has appended new tweets to your
# twtfile. It's a good place to uploade your file somewhere.
post_tweet_hook () {
gist -u ID -f "$twtfile"
}