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