]>
Commit | Line | Data |
---|---|---|
eace1f82 | 1 | diff -ruN zsh-4.2.0./Completion/Unix/Command/_sms zsh-4.2.0/Completion/Unix/Command/_sms |
2 | --- zsh-4.2.0./Completion/Unix/Command/_sms 1970-01-01 01:00:00.000000000 +0100 | |
3 | +++ zsh-4.2.0/Completion/Unix/Command/_sms 2004-03-27 16:45:03.001870328 +0100 | |
0380bfc9 | 4 | @@ -0,0 +1,61 @@ |
5 | +#compdef sms smsaddr | |
6 | + | |
7 | +# Copyright (c) 2002 GoTaR <gotar@priv0.onet.pl> | |
8 | + | |
9 | +#_sms_aliases0 () { | |
10 | +## compadd "$@" $(print ${(f)"$(smsaddr -l | cut -f1)"}) | |
11 | +# local smsas | |
12 | +# smsas=(`smsaddr -l | perl -ne 's/ +/:/; if (/^'$PREFIX'/) {print} else {if (/:'$PREFIX'/) {/^(.*):(.*)$/; print "$2:$1 "}}'`) | |
13 | +# _describe "SMS alias" "smsas" | |
14 | +#} | |
15 | + | |
16 | +_sms_aliases () { | |
17 | + local smsas | |
18 | + smsas=(${(f)"$(smsaddr -l)"}) | |
19 | + smsas=(${smsas/ ##/:}) | |
e8f67e02 | 20 | +if [[ -n "$PREFIX$SUFFIX" ]]; then |
0380bfc9 | 21 | + smsas=($smsas ${smsas/(#s)(#b)(^($PREFIX)*):(*)(#e)/$match[3]:$match[1]}) |
e8f67e02 | 22 | +fi |
0380bfc9 | 23 | +# smsas=(${(M)smsas:#$PREFIX*}) |
24 | + _describe "SMS alias" smsas | |
25 | +} | |
26 | + | |
27 | +_sms_alias () { | |
28 | + local smsas | |
29 | + smsas=(${(f)"$(smsaddr -l)"}) | |
30 | + smsas=(${smsas/ ##/:}) | |
31 | + _describe "SMS alias" smsas | |
32 | +} | |
33 | + | |
34 | +#_sms_aliases1 () { | |
35 | +#smsaddr -l | while read alias number; do | |
36 | +# if [[ $alias == $PREFIX*$SUFFIX || $number == $PREFIX*$SUFFIX ]]; then | |
37 | +# compadd -U -- $alias | |
38 | +# fi | |
39 | +#done | |
40 | +#} | |
41 | + | |
42 | +case "$service" in | |
43 | +sms) | |
44 | + _arguments \ | |
45 | + '1:SMS alias or number:_sms_aliases' \ | |
46 | + ':message:_guard' \ | |
47 | + '--split[split to max n messages]:number of messages:(2 5 9)' \ | |
48 | + '--supersms[send via SuperSMS.pl gateway]' \ | |
49 | + '--czat[send via Idea.czat gateway]' \ | |
50 | + '--dlogin[login for Idea.czat]:login:_guard' \ | |
51 | + '--pf[send via Panorama Firm gateway]' \ | |
52 | + '--plusmail[send message to PlusGSM network via e-mail gateway, not www]' \ | |
53 | + '--cfg[config file]:config file:_files' \ | |
54 | + '--check[check for the new version of this program]' \ | |
55 | + '--from[sender e-mail adress for PlusGSM and Idea gateways]:e-mail:_guard' \ | |
56 | + '--ip[sender IP]:IP:_guard' \ | |
57 | + '--sign[set signature]:signature:_guard' \ | |
58 | + '--thanksto' | |
59 | + ;; | |
60 | +smsaddr) | |
61 | + _arguments \ | |
62 | + '(-r -l)-a[add new entry]:New entry name:_guard:Phone number:_guard' \ | |
63 | + '(-a -l)-r[remove existing entry]:SMS alias:_sms_alias' \ | |
64 | + '(-a -r)-l[list entry]:SMS alias:_sms_alias' | |
65 | +esac | |
670a3bea | 66 | diff -ruN zsh-4.2.1./Completion/Redhat/Command/_rpm zsh-4.2.1/Completion/Redhat/Command/_rpm |
67 | --- zsh-4.2.1./Completion/Redhat/Command/_rpm 2004-03-19 12:25:24.000000000 +0100 | |
68 | +++ zsh-4.2.1/Completion/Redhat/Command/_rpm 2004-09-02 22:33:39.092002768 +0200 | |
d95d5c8d | 69 | @@ -100,6 +100,7 @@ |
70 | '(-b)-t+[build mode (tar file)]:build stage:((p\:execute\ \%prep\ stage l\:do\ a\ list\ check c\:execute\ build\ stage i\:execute\ install\ stage b\:build\ a\ binary\ package a\:build\ binary\ and\ source\ packages)):*:build:->build_t' \ | |
71 | '--rmsource:*:spec file:->spec_files' \ | |
72 | --{rebuild,recompile}':*:source rpm file:->package_src' \ | |
73 | + '--define:macro:->macros' \ | |
74 | '--eval:macro:->macros' && ret=0 | |
75 | ||
76 | # As long as we have a state name... | |
670a3bea | 77 | diff -ruN zsh-4.2.1./Completion/Unix/Command/.distfiles zsh-4.2.1/Completion/Unix/Command/.distfiles |
78 | --- zsh-4.2.1./Completion/Unix/Command/.distfiles 2004-08-13 12:22:24.000000000 +0200 | |
79 | +++ zsh-4.2.1/Completion/Unix/Command/.distfiles 2004-09-02 22:32:52.462091592 +0200 | |
80 | @@ -25,5 +25,5 @@ | |
81 | _perforce _printenv _python _raggle _rar _renice | |
82 | _sablotron _screen _sed _subversion _tla _php | |
83 | _uniq _vorbis _vux _wiggle _xmlsoft | |
84 | -_bogofilter | |
85 | +_bogofilter _sms | |
86 | ' |