-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wtf.man
91 lines (78 loc) · 1.55 KB
/
wtf.man
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.TH WTF 1 2022-01-24
.SH NAME
wtf \- a command for when you have no idea wtf just happened
.SH SYNOPSIS
.B wtf
.BR \-e \||\| \-\-edit
.br
.B wtf
.BR \-h \||\| \-\-help
.br
.B wtf
.BR \-i \||\| \-\-install
.br
.B wtf
.BR \-p \||\| \-\-print
.br
.B wtf
.BR \-r \||\| \-\-reset
.br
.B wtf
.BR \-u \||\| \-\-uninstall
.br
.B wtf
.BR \-V \||\| \-\-version
.SH DESCRIPTION
.B wtf
is a command that outputs a random string from a
.I config
file when executed.
.SH OPTIONS
.SS Installation
.TP
.BR \-i ", " \-\-install
Install the
.B wtf
command globally
.TP
.BR \-u ", " \-\-uninstall
Remove the globally installed command
.SS Modification
.TP
.BR \-e ", " \-\-edit
Open your user-specific
.I config
in the editor set by the
.I $EDITOR
environment variable. If the variable is not set it will default to
.IR nano "."
.TP
.BR \-p ", " \-\-print
Print out all responses from your current
.I config
file
.TP
.BR \-r ", " \-\-reset
Reset your user-specific
.I config
to default
.SS About
.TP
.BR \-h ", " \-\-help
Display
.I help
message and exit
.TP
.BR \-V ", " \-\-version
Display version information and exit
.SH CONFIGURATION
.SS File
Responses are read from
.IR ~/.config/wtf/wtf.conf "."
If that file is missing when the command is run, it will be created and filled with the default responses. It can then be edited to include whatever responses you want.
.SS Format
Responses are saved as plaintext \- each line of the file represents one possible response to be chosen at random. Escape sequences like
.I \\\\n
for line breaks or
.I \\\\e
for color escape codes are supported.