add b to Aliases so 'b' means 'bye' and not blank
[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           '^ann\w*/full', 'announce full', 'announce', 
30           '^ann\w*/sysop', 'announce sysop', 'announce',
31           '^ann\w*/(.*)$', 'announce $1', 'announce',
32         ],
33         'b' => [
34           '^b$', 'bye', 'bye',
35         ],
36         'c' => [
37         ],
38         'd' => [
39           '^del\w*/u', 'delete/user', 'delete/user',
40           '^del\w*/fu', 'kill full', 'kill',
41           '^del', 'kill', 'kill',
42           '^di\w*/a\w*', 'directory all', 'directory',
43           '^di\w*/b\w*', 'directory bulletins', 'directory',
44           '^di\w*/n\w*', 'directory new', 'directory',
45           '^di\w*/o\w*', 'directory own', 'directory',
46           '^di\w*/s\w*', 'directory subject', 'directory',
47           '^di\w*/t\w*', 'directory to', 'directory',
48           '^di\w*/f\w*', 'directory from', 'directory',
49           '^di\w*/(\d+)-(\d+)', 'directory $1-$2', 'directory',
50           '^di\w*/(\d+)', 'directory $1', 'directory',
51         ],
52         'e' => [
53           '^ex', 'bye', 'bye',
54         ],
55         'f' => [
56         ],
57         'g' => [
58         ],
59         'h' => [
60         ],
61         'i' => [
62         ],
63         'j' => [
64         ],
65         'k' => [
66         ],
67         'l' => [
68           '^l$', 'directory', 'directory',
69           '^ll$', 'directory', 'directory',
70           '^ll/(\d+)', 'directory $1', 'directory',
71           '^lm$', 'directory own', 'directory',
72         ],
73         'm' => [
74         ],
75         'n' => [
76         ],
77         'o' => [
78         ],
79         'p' => [
80         ],
81         'q' => [
82           '^q', 'bye', 'bye',
83         ],
84         'r' => [        
85           '^r$', 'read', 'read',
86           '^rcmd/(\S+)', 'rcmd $1', 'rcmd',
87         ],
88         's' => [
89           '^s/p$', 'send', 'send',
90           '^sb$', 'send noprivate', 'send',
91           '^set/home$', 'set/homenode', 'set/homenode',
92           '^set/nobe', 'unset/beep', 'unset/beep',
93           '^set/nohe', 'unset/here', 'unset/here',
94           '^set/noan', 'unset/announce', 'unset/announce',
95           '^set/nodxg', 'unset/dxgrid', 'unset/dxgrid',
96           '^set/nodx', 'unset/dx', 'unset/dx',
97           '^set/noe', 'unset/echo', 'unset/echo',
98           '^set/nota', 'unset/talk', 'unset/talk',
99           '^set/noww', 'unset/wwv', 'unset/wwv',
100           '^set/nowx', 'unset/wx', 'unset/wx',
101           '^sh$', 'show', 'show',
102           '^sh\w*/u$', 'show/user', 'show/user',
103           '^sh\w*/bu', 'show/files bulletins', 'show/files',
104           '^sh\w*/c/n', 'show/configuration nodes', 'show/configuration',
105           '^sh\w*/c$', 'show/configuration', 'show/configuration',
106           '^sh\w*/com', 'dbavail', 'dbavail',
107           '^sh\w*/dx/(\d+)-(\d+)', 'show/dx $1-$2', 'show/dx',
108           '^sh\w*/dx/(\d+)', 'show/dx $1', 'show/dx',
109           '^sh\w*/dx/d(\d+)', 'show/dx from $1', 'show/dx',
110           '^sh\w*/tnc', 'who', 'who',
111       '^sh\w*/up', 'show/cluster', 'show/cluster',
112           '^sh\w*/w\w*/(\d+)-(\d+)', 'show/wwv $1-$2', 'show/wwv',
113           '^sh\w*/w\w*/(\d+)', 'show/wwv $1', 'show/wwv',
114           '^sp$', 'send', 'send',
115         
116     ],
117         't' => [
118           '^ta$', 'talk', 'talk',
119           '^t$', 'talk', 'talk',
120         ],
121         'u' => [
122         ],
123         'v' => [
124         ],
125         'w' => [
126           '^wx/full', 'wx full', 'wx',
127           '^wx/sysop', 'wx sysop', 'wx',
128         ],
129         'x' => [
130         ],
131         'y' => [
132         ],
133         'z' => [
134         ],
135 )