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