9b4737a4a591d69089e09798cff010faf19f9ec5
[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         '^ac\w*$', '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         '^cl\w+$', 'apropos clear', 'apropos',
39         '^cr\w+$', 'apropos create', 'apropos',
40         ],
41         'd' => [
42         '^del\w*$', '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           '^ex', 'bye', 'bye',
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         '^lo\w*$', '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         '^rej\w*$', 'apropos reject', 'apropos',
92           '^r$', 'read', 'read',
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           '^sh$', 'show', 'show',
110           '^sh\w*/u$', 'show/user', 'show/user',
111           '^sh\w*/bu', 'show/files bulletins', 'show/files',
112           '^sh\w*/c/n', 'show/configuration nodes', 'show/configuration',
113           '^sh\w*/c$', 'show/configuration', 'show/configuration',
114           '^sh\w*/com', 'dbavail', 'dbavail',
115           '^sh\w*/dx/(\d+)-(\d+)', 'show/dx $1-$2', 'show/dx',
116           '^sh\w*/dx/(\d+)', 'show/dx $1', 'show/dx',
117           '^sh\w*/dx/d(\d+)', 'show/dx from $1', 'show/dx',
118           '^sh\w*/newc/n', 'show/newconfiguration node', 'show/newconfiguration',
119           '^sh\w*/tnc', 'who', 'who',
120       '^sh\w*/up', 'show/cluster', 'show/cluster',
121           '^sh\w*/w\w*/(\d+)-(\d+)', 'show/wwv $1-$2', 'show/wwv',
122           '^sh\w*/w\w*/(\d+)', 'show/wwv $1', 'show/wwv',
123         '^shu\w*$', 'shutdown', 'shutdown',
124         '^sh\w*$', 'apropos show', 'apropos',
125           '^sp$', 'send', 'send',
126         '^st\w*$', 'apropos stat', 'apropos',
127         
128     ],
129         't' => [
130           '^ta$', 'talk', 'talk',
131           '^t$', 'talk', 'talk',
132         ],
133         'u' => [
134         '^un\w*$', 'apropos unset', 'apropos',
135         ],
136         'v' => [
137         ],
138         'w' => [
139           '^wx/full', 'wx full', 'wx',
140           '^wx/sysop', 'wx sysop', 'wx',
141         ],
142         'x' => [
143         ],
144         'y' => [
145         ],
146         'z' => [
147         ],
148 )