f956c14f81219e60ecf3ce9922b61ba5db4843fe
[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?o?u?n?c?e?/full', 'announce full', 'announce', 
31           '^ann?o?u?n?c?e?/sysop', 'announce sysop', 'announce',
32           '^ann?o?u?n?c?e?/(.*)$', '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           '^dele?t?e?/u', 'delete/user', 'delete/user',
43           '^dele?t?e?/fu', 'kill full', 'kill',
44           '^dele?t?e?$', 'kill', 'kill',
45           '^dir?e?c?t?o?r?y?/a\w*', 'directory all', 'directory',
46           '^dir?e?c?t?o?r?y?/b\w*', 'directory bulletins', 'directory',
47           '^dir?e?c?t?o?r?y?/n\w*', 'directory new', 'directory',
48           '^dir?e?c?t?o?r?y?/o\w*', 'directory own', 'directory',
49           '^dir?e?c?t?o?r?y?/s\w*', 'directory subject', 'directory',
50           '^dir?e?c?t?o?r?y?/t\w*', 'directory to', 'directory',
51           '^dir?e?c?t?o?r?y?/f\w*', 'directory from', 'directory',
52           '^dir?e?c?t?o?r?y?/(\d+)-(\d+)', 'directory $1-$2', 'directory',
53           '^dir?e?c?t?o?r?y?/(\d+)', 'directory $1', 'directory',
54         ],
55         'e' => [
56           '^exi?t?$', 'bye', 'bye',
57           '^export_u', 'export_users', 'export_users',
58           '^expor?', 'export', 'export',
59           '^expun?g?e?$', 'kill expunge', 'kill expunge',
60         ],
61         'f' => [
62         '^fo\w*$', 'apropos forward', 'apropos',
63         ],
64         'g' => [
65         ],
66         'h' => [
67         ],
68         'i' => [
69         ],
70         'j' => [
71         ],
72         'k' => [
73                         '^ki?l?l?/ex', 'kill expunge', 'kill',
74         ],
75         'l' => [
76         '^loa?d?$', 'apropos load', 'apropos',
77           '^l$', 'directory', 'directory',
78           '^ll$', 'directory', 'directory',
79           '^ll/(\d+)', 'directory $1', 'directory',
80           '^lm$', 'directory own', 'directory',
81         ],
82         'm' => [
83         ],
84         'n' => [
85         ],
86         'o' => [
87         ],
88         'p' => [
89         ],
90         'q' => [
91           '^q', 'bye', 'bye',
92         ],
93         'r' => [        
94           '^r$', 'read', 'read',
95         '^reje?c?t?$', 'apropos reject', 'apropos',
96           '^rcmd/(\S+)', 'rcmd $1', 'rcmd',
97         ],
98         's' => [
99           '^s/p$', 'send', 'send',
100           '^sb$', 'send noprivate', 'send',
101           '^set/home$', 'set/homenode', 'set/homenode',
102           '^set/nobe', 'unset/beep', 'unset/beep',
103           '^set/nohe', 'unset/here', 'unset/here',
104           '^set/noan', 'unset/announce', 'unset/announce',
105           '^set/nodxg', 'unset/dxgrid', 'unset/dxgrid',
106           '^set/nodx', 'unset/dx', 'unset/dx',
107           '^set/noe', 'unset/echo', 'unset/echo',
108           '^set/nota', 'unset/talk', 'unset/talk',
109           '^set/noww', 'unset/wwv', 'unset/wwv',
110           '^set/nowx', 'unset/wx', 'unset/wx',
111         '^set$', 'apropos set', 'apropos',
112           '^sho?w?/u$', 'show/user', 'show/user',
113           '^sho?w?/bu', 'show/files bulletins', 'show/files',
114           '^sho?w?/c/n', 'show/configuration nodes', 'show/configuration',
115           '^sho?w?/c$', 'show/configuration', 'show/configuration',
116           '^sho?w?/com', 'dbavail', 'dbavail',
117           '^sho?w?/dx/(\d+)-(\d+)', 'show/dx $1-$2', 'show/dx',
118           '^sho?w?/dx/(\d+)', 'show/dx $1', 'show/dx',
119           '^sho?w?/dx/d(\d+)', 'show/dx from $1', 'show/dx',
120           '^sho?w?/newc/n', 'show/newconfiguration node', 'show/newconfiguration',
121           '^sho?w?/tnc', 'who', 'who',
122       '^sho?w?/up', 'show/cluster', 'show/cluster',
123           '^sho?w?/ww?v?/(\d+)-(\d+)', 'show/wwv $1-$2', 'show/wwv',
124           '^sho?w?/ww?v?/(\d+)', 'show/wwv $1', 'show/wwv',
125         '^sho?w?$', 'apropos show', 'apropos',
126         '^shut?d?\w*$', 'shutdown', 'shutdown',
127           '^sp$', 'send', 'send',
128         '^sta?t?$', 'apropos stat', 'apropos',
129         
130     ],
131         't' => [
132           '^ta$', 'talk', 'talk',
133           '^t$', 'talk', 'talk',
134         ],
135         'u' => [
136         '^uns?e?t?$', 'apropos unset', 'apropos',
137         ],
138         'v' => [
139         ],
140         'w' => [
141           '^wx/full', 'wx full', 'wx',
142           '^wx/sysop', 'wx sysop', 'wx',
143         ],
144         'x' => [
145         ],
146         'y' => [
147         ],
148         'z' => [
149         ],
150 )