7f11aa90efd48322307f329ae5042d70db4c50e7
[spider.git] / cmd / Aliases
1 #!/usr/bin/perl
2 #
3 # provide some standard aliases for commands for terminally
4 # helpless ak1a user (helpless in the sense that they never
5 # read nor understand help files)
6 #
7 # This file is automagically reloaded if its modification time is 
8 # later than the one stored in CmdAlias.pm
9 #
10 # PLEASE make this file consistant with reality! (the patterns MUST
11 # match the filenames!)
12 #
13 # Don't alter this file, copy it into the local_cmd tree and modify it.
14 # This file will be replaced everytime I issue a new release.
15 #
16 # You only need to put aliases in here for commands that don't work as
17 # you desire naturally, e.g sh/dx on its own just works as you expect
18 # so you need not add it as an alias.
19 #
20
21
22 package CmdAlias;
23
24 %alias = (
25     '?' => [
26           '^\?', 'apropos', 'apropos',
27         ],
28     'a' => [
29         '^acc?e?p?t?$', 'apropos accept', 'apropos',
30           '^ann\w*/full', 'announce full', 'announce', 
31           '^ann\w*/sysop', 'announce sysop', 'announce',
32           '^ann\w*/(.*)$', 'announce $1', 'announce',
33         ],
34         'b' => [
35           '^b$', 'bye', 'bye',
36         ],
37         'c' => [
38         '^cle?a?r?$', 'apropos clear', 'apropos',
39         '^cre?a?t?e?$', 'apropos create', 'apropos',
40         ],
41         'd' => [
42           '^del\w*/u', 'delete/user', 'delete/user',
43           '^del\w*/fu', 'kill full', 'kill',
44           '^del', 'kill', 'kill',
45           '^di\w*/a\w*', 'directory all', 'directory',
46           '^di\w*/b\w*', 'directory bulletins', 'directory',
47           '^di\w*/n\w*', 'directory new', 'directory',
48           '^di\w*/o\w*', 'directory own', 'directory',
49           '^di\w*/s\w*', 'directory subject', 'directory',
50           '^di\w*/t\w*', 'directory to', 'directory',
51           '^di\w*/f\w*', 'directory from', 'directory',
52           '^di\w*/(\d+)-(\d+)', 'directory $1-$2', 'directory',
53           '^di\w*/(\d+)', 'directory $1', 'directory',
54         ],
55         'e' => [
56           '^exi?t?$', 'bye', 'bye',
57           '^exp?u?\w+$', 'kill expunge', 'kill expunge',
58         ],
59         'f' => [
60         '^fo\w*$', 'apropos forward', 'apropos',
61         ],
62         'g' => [
63         ],
64         'h' => [
65         ],
66         'i' => [
67         ],
68         'j' => [
69         ],
70         'k' => [
71         ],
72         'l' => [
73         '^loa?d?$', 'apropos load', 'apropos',
74           '^l$', 'directory', 'directory',
75           '^ll$', 'directory', 'directory',
76           '^ll/(\d+)', 'directory $1', 'directory',
77           '^lm$', 'directory own', 'directory',
78         ],
79         'm' => [
80         ],
81         'n' => [
82         ],
83         'o' => [
84         ],
85         'p' => [
86         ],
87         'q' => [
88           '^q', 'bye', 'bye',
89         ],
90         'r' => [        
91           '^r$', 'read', 'read',
92         '^reje?c?t?$', 'apropos reject', 'apropos',
93           '^rcmd/(\S+)', 'rcmd $1', 'rcmd',
94         ],
95         's' => [
96           '^s/p$', 'send', 'send',
97           '^sb$', 'send noprivate', 'send',
98           '^set/home$', 'set/homenode', 'set/homenode',
99           '^set/nobe', 'unset/beep', 'unset/beep',
100           '^set/nohe', 'unset/here', 'unset/here',
101           '^set/noan', 'unset/announce', 'unset/announce',
102           '^set/nodxg', 'unset/dxgrid', 'unset/dxgrid',
103           '^set/nodx', 'unset/dx', 'unset/dx',
104           '^set/noe', 'unset/echo', 'unset/echo',
105           '^set/nota', 'unset/talk', 'unset/talk',
106           '^set/noww', 'unset/wwv', 'unset/wwv',
107           '^set/nowx', 'unset/wx', 'unset/wx',
108         '^set$', 'apropos set', 'apropos',
109           '^sho?w?/u$', 'show/user', 'show/user',
110           '^sho?w?/bu', 'show/files bulletins', 'show/files',
111           '^sho?w?/c/n', 'show/configuration nodes', 'show/configuration',
112           '^sho?w?/c$', 'show/configuration', 'show/configuration',
113           '^sho?w?/com', 'dbavail', 'dbavail',
114           '^sho?w?/dx/(\d+)-(\d+)', 'show/dx $1-$2', 'show/dx',
115           '^sho?w?/dx/(\d+)', 'show/dx $1', 'show/dx',
116           '^sho?w?/dx/d(\d+)', 'show/dx from $1', 'show/dx',
117           '^sho?w?/newc/n', 'show/newconfiguration node', 'show/newconfiguration',
118           '^sho?w?/tnc', 'who', 'who',
119       '^sho?w?/up', 'show/cluster', 'show/cluster',
120           '^sho?w?/ww?v?/(\d+)-(\d+)', 'show/wwv $1-$2', 'show/wwv',
121           '^sho?w?/ww?v?/(\d+)', 'show/wwv $1', 'show/wwv',
122         '^shut?d?\w*$', 'shutdown', 'shutdown',
123         '^sho?w?$', 'apropos show', 'apropos',
124           '^sp$', 'send', 'send',
125         '^sta?t?$', 'apropos stat', 'apropos',
126         
127     ],
128         't' => [
129           '^ta$', 'talk', 'talk',
130           '^t$', 'talk', 'talk',
131         ],
132         'u' => [
133         '^uns?e?t?$', 'apropos unset', 'apropos',
134         ],
135         'v' => [
136         ],
137         'w' => [
138           '^wx/full', 'wx full', 'wx',
139           '^wx/sysop', 'wx sysop', 'wx',
140         ],
141         'x' => [
142         ],
143         'y' => [
144         ],
145         'z' => [
146         ],
147 )