|
Lines 1-5
Link Here
|
| 1 |
# |
1 |
# |
| 2 |
# $tcsh: complete.tcsh,v 1.52 2010/05/07 17:54:13 christos Exp $ |
2 |
# $tcsh: complete.tcsh,v 1.56 2015/07/03 16:52:47 christos Exp $ |
| 3 |
# example file using the new completion code |
3 |
# example file using the new completion code |
| 4 |
# |
4 |
# |
| 5 |
# Debian GNU/Linux |
5 |
# Debian GNU/Linux |
|
Lines 20-1228
Link Here
|
| 20 |
# Cleanup by Martin A. Godisch <martin@godisch.de>. |
20 |
# Cleanup by Martin A. Godisch <martin@godisch.de>. |
| 21 |
|
21 |
|
| 22 |
onintr - |
22 |
onintr - |
| 23 |
if (! $?prompt) goto end |
23 |
if ( ! $?prompt ) goto end |
| 24 |
|
24 |
|
| 25 |
if ($?tcsh) then |
25 |
if ( $?tcsh ) then |
| 26 |
if ($tcsh != 1) then |
26 |
if ( $tcsh != 1 ) then |
| 27 |
set rev=$tcsh:r |
27 |
set rev=$tcsh:r:r |
| 28 |
set rel=$rev:e |
28 |
set rel=$tcsh:r:e |
| 29 |
set pat=$tcsh:e |
29 |
if ( $rev > 6 || ( $rev > 5 && $rel > 1 ) ) then |
| 30 |
set rev=$rev:r |
30 |
set _has_complete=1 |
| 31 |
endif |
31 |
endif |
| 32 |
if ($rev > 5 && $rel > 1) then |
32 |
endif |
| 33 |
set _complete=1 |
33 |
unset rev rel |
| 34 |
endif |
|
|
| 35 |
unset rev rel pat |
| 36 |
endif |
34 |
endif |
| 37 |
|
35 |
|
| 38 |
if ($?_complete) then |
36 |
if ( ! $?_has_complete ) goto end |
| 39 |
set noglob |
|
|
| 40 |
if ( ! $?hosts ) set hosts |
| 41 |
foreach f ("$HOME/.hosts" /usr/local/etc/csh.hosts "$HOME/.rhosts" /etc/hosts.equiv) |
| 42 |
if ( -r "$f" ) then |
| 43 |
set hosts = ($hosts `grep -v "+" "$f" | grep -E -v "^#" | tr -s " " " " | cut -f 1`) |
| 44 |
endif |
| 45 |
end |
| 46 |
if ( -r "$HOME/.netrc" ) then |
| 47 |
set f=`awk '/machine/ { print $2 }' < "$HOME/.netrc"` >& /dev/null |
| 48 |
set hosts=($hosts $f) |
| 49 |
endif |
| 50 |
if ( -r "$HOME/.ssh/known_hosts" ) then |
| 51 |
set f=`cat "$HOME/.ssh/known_hosts" | cut -f 1 -d \ ` >& /dev/null |
| 52 |
set f=`cat "$HOME/.ssh/known_hosts" | cut -f 1 -d \ | sed -e 's/,/ /g'` >& /dev/null |
| 53 |
set hosts=($hosts $f) |
| 54 |
endif |
| 55 |
unset f |
| 56 |
if ( ! $?hosts ) then |
| 57 |
set hosts=(hyperion.ee.cornell.edu phaeton.ee.cornell.edu \ |
| 58 |
guillemin.ee.cornell.edu vangogh.cs.berkeley.edu \ |
| 59 |
ftp.uu.net prep.ai.mit.edu export.lcs.mit.edu \ |
| 60 |
labrea.stanford.edu sumex-aim.stanford.edu \ |
| 61 |
tut.cis.ohio-state.edu) |
| 62 |
endif |
| 63 |
|
37 |
|
| 64 |
complete ywho n/*/\$hosts/ # argument from list in $hosts |
38 |
if ( ! $?noglob ) set noglob _unset_noglob |
| 65 |
complete rsh p/1/\$hosts/ c/-/"(l n)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/ |
|
|
| 66 |
complete ssh p/1/\$hosts/ c/-/"(l n)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/ |
| 67 |
complete xrsh p/1/\$hosts/ c/-/"(l 8 e)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/ |
| 68 |
complete rlogin p/1/\$hosts/ c/-/"(l 8 e)"/ n/-l/u/ |
| 69 |
complete telnet p/1/\$hosts/ p/2/x:'<port>'/ n/*/n/ |
| 70 |
|
39 |
|
| 71 |
complete cd p/1/d/ # Directories only |
40 |
# Old TCSH versions don't define OSTYPE. |
| 72 |
complete chdir p/1/d/ |
41 |
# Use a close approximation instead. |
| 73 |
complete pushd p/1/d/ |
|
|
| 74 |
complete popd p/1/d/ |
| 75 |
complete pu p/1/d/ |
| 76 |
complete po p/1/d/ |
| 77 |
complete complete p/1/X/ # Completions only |
| 78 |
complete uncomplete n/*/X/ |
| 79 |
complete exec p/1/c/ # Commands only |
| 80 |
complete trace p/1/c/ |
| 81 |
complete strace p/1/c/ |
| 82 |
complete which n/*/c/ |
| 83 |
complete where n/*/c/ |
| 84 |
complete skill p/1/c/ |
| 85 |
complete dde p/1/c/ |
| 86 |
complete adb c/-I/d/ n/-/c/ N/-/"(core)"/ p/1/c/ p/2/"(core)"/ |
| 87 |
complete sdb p/1/c/ |
| 88 |
complete dbx c/-I/d/ n/-/c/ N/-/"(core)"/ p/1/c/ p/2/"(core)"/ |
| 89 |
complete xdb p/1/c/ |
| 90 |
complete gdb n/-d/d/ n/*/c/ |
| 91 |
complete ups p/1/c/ |
| 92 |
complete set 'c/*=/f/' 'p/1/s/=' 'n/=/f/' |
| 93 |
complete unset n/*/s/ |
| 94 |
complete alias p/1/a/ # only aliases are valid |
| 95 |
complete unalias n/*/a/ |
| 96 |
complete xdvi n/*/f:*.dvi/ # Only files that match *.dvi |
| 97 |
complete dvips n/*/f:*.dvi/ |
| 98 |
if ($?traditional_complete) then |
| 99 |
complete tex n/*/f:*.tex/ # Only files that match *.tex |
| 100 |
else |
| 101 |
complete tex n/*/f:*.{tex,texi}/ # Files that match *.tex and *.texi |
| 102 |
endif |
| 103 |
complete latex n/*/f:*.{tex,ltx}/ |
| 104 |
complete su c/--/"(login fast preserve-environment command shell \ |
| 105 |
help version)"/ c/-/"(f l m p c s -)"/ \ |
| 106 |
n/{-c,--command}/c/ \ |
| 107 |
n@{-s,--shell}@'`cat /etc/shells`'@ n/*/u/ |
| 108 |
complete cc c/-[IL]/d/ \ |
| 109 |
c@-l@'`\ls -1 /usr/lib/lib*.a | sed s%^.\*/lib%%\;s%\\.a\$%%`'@ \ |
| 110 |
c/-/"(o l c g L I D U)"/ n/*/f:*.[coasi]/ |
| 111 |
complete acc c/-[IL]/d/ \ |
| 112 |
c@-l@'`\ls -1 /usr/lang/SC1.0/lib*.a | sed s%^.\*/lib%%\;s%\\.a\$%%`'@ \ |
| 113 |
c/-/"(o l c g L I D U)"/ n/*/f:*.[coasi]/ |
| 114 |
complete gcc c/-[IL]/d/ \ |
| 115 |
c/-f/"(caller-saves cse-follow-jumps delayed-branch \ |
| 116 |
elide-constructors expensive-optimizations \ |
| 117 |
float-store force-addr force-mem inline \ |
| 118 |
inline-functions keep-inline-functions \ |
| 119 |
memoize-lookups no-default-inline \ |
| 120 |
no-defer-pop no-function-cse omit-frame-pointer \ |
| 121 |
rerun-cse-after-loop schedule-insns \ |
| 122 |
schedule-insns2 strength-reduce \ |
| 123 |
thread-jumps unroll-all-loops \ |
| 124 |
unroll-loops syntax-only all-virtual \ |
| 125 |
cond-mismatch dollars-in-identifiers \ |
| 126 |
enum-int-equiv no-asm no-builtin \ |
| 127 |
no-strict-prototype signed-bitfields \ |
| 128 |
signed-char this-is-variable unsigned-bitfields \ |
| 129 |
unsigned-char writable-strings call-saved-reg \ |
| 130 |
call-used-reg fixed-reg no-common \ |
| 131 |
no-gnu-binutils nonnull-objects \ |
| 132 |
pcc-struct-return pic PIC shared-data \ |
| 133 |
short-enums short-double volatile)"/ \ |
| 134 |
c/-W/"(all aggregate-return cast-align cast-qual \ |
| 135 |
comment conversion enum-clash error format \ |
| 136 |
id-clash-len implicit missing-prototypes \ |
| 137 |
no-parentheses pointer-arith return-type shadow \ |
| 138 |
strict-prototypes switch uninitialized unused \ |
| 139 |
write-strings)"/ \ |
| 140 |
c/-m/"(68000 68020 68881 bitfield fpa nobitfield rtd \ |
| 141 |
short c68000 c68020 soft-float g gnu unix fpu \ |
| 142 |
no-epilogue)"/ \ |
| 143 |
c/-d/"(D M N)"/ \ |
| 144 |
c/-/"(f W vspec v vpath ansi traditional \ |
| 145 |
traditional-cpp trigraphs pedantic x o l c g L \ |
| 146 |
I D U O O2 C E H B b V M MD MM i dynamic \ |
| 147 |
nodtdlib static nostdinc undef)"/ \ |
| 148 |
c/-l/f:*.a/ \ |
| 149 |
n/*/f:*.{c,C,cc,o,a,s,i}/ |
| 150 |
complete g++ n/*/f:*.{C,cc,o,s,i}/ |
| 151 |
complete CC n/*/f:*.{C,cc,cpp,o,s,i}/ |
| 152 |
complete rm c/--/"(directory force interactive verbose \ |
| 153 |
recursive help version)"/ c/-/"(d f i v r R -)"/ \ |
| 154 |
n/*/f:^*.{c,cc,C,h,in}/ # Protect precious files |
| 155 |
complete vi n/*/f:^*.[oa]/ |
| 156 |
complete bindkey N/-a/b/ N/-c/c/ n/-[ascr]/'x:<key-sequence>'/ \ |
| 157 |
n/-[svedlr]/n/ c/-[vedl]/n/ c/-/"(a s k c v e d l r)"/\ |
| 158 |
n/-k/"(left right up down)"/ p/2-/b/ \ |
| 159 |
p/1/'x:<key-sequence or option>'/ |
| 160 |
|
42 |
|
| 161 |
complete find n/-fstype/"(nfs 4.2)"/ n/-name/f/ \ |
43 |
if ( ! $?OSTYPE ) then |
| 162 |
n/-type/"(c b d f p l s)"/ n/-user/u/ n/-group/g/ \ |
44 |
setenv OSTYPE `echo "$HOSTTYPE" | sed -e 's/^(i[3456]86|(amd|x86_)64)-//'` |
| 163 |
n/-exec/c/ n/-ok/c/ n/-cpio/f/ n/-ncpio/f/ n/-newer/f/ \ |
45 |
endif |
| 164 |
c/-/"(fstype name perm prune type user nouser \ |
|
|
| 165 |
group nogroup size inum atime mtime ctime exec \ |
| 166 |
ok print ls cpio ncpio newer xdev depth \ |
| 167 |
daystart follow maxdepth mindepth noleaf version \ |
| 168 |
anewer cnewer amin cmin mmin true false uid gid \ |
| 169 |
ilname iname ipath iregex links lname empty path \ |
| 170 |
regex used xtype fprint fprint0 fprintf \ |
| 171 |
print0 printf not a and o or)"/ \ |
| 172 |
n/*/d/ |
| 173 |
|
46 |
|
| 174 |
complete -%* c/%/j/ # fill in the jobs builtin |
47 |
if ( ! $?hosts ) set hosts |
| 175 |
complete {fg,bg,stop} c/%/j/ p/1/"(%)"// |
|
|
| 176 |
|
48 |
|
| 177 |
complete limit c/-/"(h)"/ n/*/l/ |
49 |
foreach f ( "$HOME/."{,r,ssh/known_}hosts* \ |
| 178 |
complete unlimit c/-/"(h)"/ n/*/l/ |
50 |
/usr/local/etc/csh.hosts /etc/hosts.equiv ) |
|
|
51 |
if ( -r "$f" ) then |
| 52 |
set hosts=($hosts `sed \ |
| 53 |
-e 's/#.*//' \ |
| 54 |
-e '/^[+-]@/d' \ |
| 55 |
-e 's/^[-+]//' \ |
| 56 |
-e 's/[[:space:]].*//' \ |
| 57 |
-e 's/,/\n/g' "$f" \ |
| 58 |
| sed -e '/^[.:[:xdigit:][:space:]]*$/d'`) |
| 59 |
endif |
| 60 |
end |
| 61 |
unset f |
| 179 |
|
62 |
|
| 180 |
complete -co* p/0/"(compress)"/ # make compress completion |
63 |
if ( -r "$HOME/.netrc" ) then |
| 181 |
# not ambiguous |
64 |
set hosts=($hosts `awk '$1 == "machine" { print $2 }' "$HOME/.netrc"`) |
| 182 |
if ($?traditional_complete) then |
65 |
endif |
| 183 |
complete zcat n/*/f:*.Z/ |
|
|
| 184 |
else |
| 185 |
# "zcat" may be linked to "compress" or "gzip" |
| 186 |
if (-X zcat) then |
| 187 |
zcat --version >& /dev/null |
| 188 |
if ($status != 0) then |
| 189 |
complete zcat n/*/f:*.Z/ |
| 190 |
else |
| 191 |
complete zcat c/--/"(force help license quiet version)"/ \ |
| 192 |
c/-/"(f h L q V -)"/ n/*/f:*.{gz,Z,z,zip}/ |
| 193 |
endif |
| 194 |
endif |
| 195 |
endif |
| 196 |
|
66 |
|
| 197 |
complete finger c/*@/\$hosts/ n/*/u/@ |
67 |
set hosts=(`echo $hosts | tr ' ' '\012' | sort -u`) |
| 198 |
complete ping p/1/\$hosts/ |
|
|
| 199 |
complete traceroute p/1/\$hosts/ |
| 200 |
|
68 |
|
| 201 |
complete {talk,ntalk,phone} p/1/'`users | tr " " "\012" | uniq`'/ \ |
69 |
if ( ! $#hosts ) then |
| 202 |
n/*/\`who\ \|\ grep\ \$:1\ \|\ awk\ \'\{\ print\ \$2\ \}\'\`/ |
70 |
# This is just a hint for the user. |
|
|
71 |
set hosts=(ftp.funet.fi ftp.gnu.org ftp.uu.net) |
| 72 |
endif |
| 203 |
|
73 |
|
| 204 |
complete ftp c/-/"(d i g n v)"/ n/-/\$hosts/ p/1/\$hosts/ n/*/n/ |
74 |
complete ywho n/*/\$hosts/ # argument from list in $hosts |
|
|
75 |
complete rsh p/1/\$hosts/ c/-/"(l n)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/ |
| 76 |
complete ssh p/1/\$hosts/ c/-/"(l n)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/ |
| 77 |
complete xrsh p/1/\$hosts/ c/-/"(l 8 e)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/ |
| 78 |
complete rlogin p/1/\$hosts/ c/-/"(l 8 e)"/ n/-l/u/ |
| 79 |
complete telnet p/1/\$hosts/ p/2/x:'<port>'/ n/*/n/ |
| 205 |
|
80 |
|
| 206 |
# this one is simple... |
81 |
complete cd p/1/d/ # Directories only |
| 207 |
#complete rcp c/*:/f/ C@[./\$~]*@f@ n/*/\$hosts/: |
82 |
complete chdir p/1/d/ |
| 208 |
# From Michael Schroeder <mlschroe@immd4.informatik.uni-erlangen.de> |
83 |
complete pushd p/1/d/ |
| 209 |
# This one will rsh to the file to fetch the list of files! |
84 |
complete popd p/1/d/ |
| 210 |
complete rcp 'c%*@*:%`set q=$:-0;set q="$q:s/@/ /";set q="$q:s/:/ /";set q=($q " ");rsh $q[2] -l $q[1] ls -dp $q[3]\*`%' 'c%*:%`set q=$:-0;set q="$q:s/:/ /";set q=($q " ");rsh $q[1] ls -dp $q[2]\*`%' 'c%*@%$hosts%:' 'C@[./$~]*@f@' 'n/*/$hosts/:' |
85 |
complete pu p/1/d/ |
|
|
86 |
complete po p/1/d/ |
| 87 |
complete complete p/1/X/ # Completions only |
| 88 |
complete uncomplete n/*/X/ |
| 89 |
complete exec p/1/c/ # Commands only |
| 90 |
complete trace p/1/c/ |
| 91 |
complete strace p/1/c/ |
| 92 |
complete which n/*/c/ |
| 93 |
complete where n/*/c/ |
| 94 |
complete skill p/1/c/ |
| 95 |
complete dde p/1/c/ |
| 96 |
complete adb c/-I/d/ n/-/c/ N/-/"(core)"/ p/1/c/ p/2/"(core)"/ |
| 97 |
complete sdb p/1/c/ |
| 98 |
complete dbx c/-I/d/ n/-/c/ N/-/"(core)"/ p/1/c/ p/2/"(core)"/ |
| 99 |
complete xdb p/1/c/ |
| 100 |
complete gdb n/-d/d/ n/*/c/ |
| 101 |
complete ups p/1/c/ |
| 102 |
complete set 'c/*=/f/' 'p/1/s/=' 'n/=/f/' |
| 103 |
complete unset n/*/s/ |
| 104 |
complete alias p/1/a/ # only aliases are valid |
| 105 |
complete unalias n/*/a/ |
| 106 |
complete xdvi n/*/f:*.dvi/ |
| 107 |
complete dvips n/*/f:*.dvi/ |
| 108 |
complete tex n/*/f:*.{tex,texi}/ |
| 109 |
complete latex n/*/f:*.{tex,ltx}/ |
| 211 |
|
110 |
|
| 212 |
complete dd c/--/"(help version)"/ c/[io]f=/f/ \ |
111 |
complete su \ |
| 213 |
c/conv=*,/"(ascii ebcdic ibm block unblock \ |
112 |
c/--/"(login fast preserve-environment command shell help version)"/ \ |
| 214 |
lcase notrunc ucase swab noerror sync)"/,\ |
113 |
c/-/"(f l m p c s -)"/ \ |
| 215 |
c/conv=/"(ascii ebcdic ibm block unblock \ |
114 |
n/{-c,--command}/c/ \ |
| 216 |
lcase notrunc ucase swab noerror sync)"/,\ |
115 |
n@{-s,--shell}@'`cat /etc/shells`'@ \ |
| 217 |
c/*=/x:'<number>'/ \ |
116 |
n/*/u/ |
| 218 |
n/*/"(if of conv ibs obs bs cbs files skip file seek count)"/= |
117 |
complete cc \ |
|
|
118 |
c/-[IL]/d/ \ |
| 119 |
c@-l@'`\ls -1 /usr/lib/lib*.a | sed s%^.\*/lib%%\;s%\\.a\$%%`'@ \ |
| 120 |
c/-/"(o l c g L I D U)"/ n/*/f:*.[coasi]/ |
| 121 |
complete acc \ |
| 122 |
c/-[IL]/d/ \ |
| 123 |
c@-l@'`\ls -1 /usr/lang/SC1.0/lib*.a | sed s%^.\*/lib%%\;s%\\.a\$%%`'@ \ |
| 124 |
c/-/"(o l c g L I D U)"/ n/*/f:*.[coasi]/ |
| 125 |
complete gcc \ |
| 126 |
c/-[IL]/d/ \ |
| 127 |
c/-f/"(caller-saves cse-follow-jumps delayed-branch elide-constructors \ |
| 128 |
expensive-optimizations float-store force-addr force-mem inline \ |
| 129 |
inline-functions keep-inline-functions memoize-lookups \ |
| 130 |
no-default-inline no-defer-pop no-function-cse omit-frame-pointer \ |
| 131 |
rerun-cse-after-loop schedule-insns schedule-insns2 strength-reduce \ |
| 132 |
thread-jumps unroll-all-loops unroll-loops syntax-only all-virtual \ |
| 133 |
cond-mismatch dollars-in-identifiers enum-int-equiv no-asm no-builtin \ |
| 134 |
no-strict-prototype signed-bitfields signed-char this-is-variable \ |
| 135 |
unsigned-bitfields unsigned-char writable-strings call-saved-reg \ |
| 136 |
call-used-reg fixed-reg no-common no-gnu-binutils nonnull-objects \ |
| 137 |
pcc-struct-return pic PIC shared-data short-enums short-double \ |
| 138 |
volatile)"/ \ |
| 139 |
c/-W/"(all aggregate-return cast-align cast-qual comment conversion \ |
| 140 |
enum-clash error format id-clash-len implicit missing-prototypes \ |
| 141 |
no-parentheses pointer-arith return-type shadow strict-prototypes \ |
| 142 |
switch uninitialized unused write-strings)"/ \ |
| 143 |
c/-m/"(68000 68020 68881 bitfield fpa nobitfield rtd short c68000 c68020 \ |
| 144 |
soft-float g gnu unix fpu no-epilogue)"/ \ |
| 145 |
c/-d/"(D M N)"/ \ |
| 146 |
c/-/"(f W vspec v vpath ansi traditional traditional-cpp trigraphs pedantic \ |
| 147 |
x o l c g L I D U O O2 C E H B b V M MD MM i dynamic nodtdlib static \ |
| 148 |
nostdinc undef)"/ \ |
| 149 |
c/-l/f:*.a/ \ |
| 150 |
n/*/f:*.{c,C,cc,o,a,s,i}/ |
| 151 |
complete g++ n/*/f:*.{C,cc,o,s,i}/ |
| 152 |
complete CC n/*/f:*.{C,cc,cpp,o,s,i}/ |
| 153 |
complete rm \ |
| 154 |
c/--/"(directory force interactive verbose recursive help version)"/ \ |
| 155 |
c/-/"(d f i v r R -)"/ \ |
| 156 |
n/*/f:^*.{c,cc,C,h,in}/ |
| 157 |
# Protect precious files |
| 158 |
complete vi n/*/f:^*.[oa]/ |
| 159 |
complete bindkey \ |
| 160 |
N/-a/b/ N/-c/c/ n/-[ascr]/'x:<key-sequence>'/ \ |
| 161 |
n/-[svedlr]/n/ c/-[vedl]/n/ c/-/"(a s k c v e d l r)"/ \ |
| 162 |
n/-k/"(left right up down)"/ p/2-/b/ \ |
| 163 |
p/1/'x:<key-sequence or option>'/ |
| 219 |
|
164 |
|
| 220 |
complete nslookup p/1/x:'<host>'/ p/2/\$hosts/ |
165 |
complete find \ |
|
|
166 |
n/-fstype/"(nfs 4.2)"/ \ |
| 167 |
n/-name/f/ \ |
| 168 |
n/-type/"(c b d f p l s)"/ \ |
| 169 |
n/-user/u/ \ |
| 170 |
n/-group/g/ \ |
| 171 |
n/-exec/c/ \ |
| 172 |
n/-ok/c/ \ |
| 173 |
n/-cpio/f/ \ |
| 174 |
n/-ncpio/f/ \ |
| 175 |
n/-newer/f/ \ |
| 176 |
c/-/"(fstype name perm prune type user nouser group nogroup size inum \ |
| 177 |
atime mtime ctime exec ok print ls cpio ncpio newer xdev depth \ |
| 178 |
daystart follow maxdepth mindepth noleaf version anewer cnewer \ |
| 179 |
amin cmin mmin true false uid gid ilname iname ipath iregex links \ |
| 180 |
lname empty path regex used xtype fprint fprint0 fprintf print0 \ |
| 181 |
printf not a and o or)"/ \ |
| 182 |
n/*/d/ |
| 221 |
|
183 |
|
| 222 |
complete ar c/[dmpqrtx]/"(c l o u v a b i)"/ p/1/"(d m p q r t x)"// \ |
184 |
complete -%* c/%/j/ # fill in the jobs builtin |
| 223 |
p/2/f:*.a/ p/*/f:*.o/ |
185 |
complete {fg,bg,stop} c/%/j/ p/1/"(%)"// |
| 224 |
|
186 |
|
| 225 |
# these should be merged with the MH completion hacks below - jgotts |
187 |
complete limit c/-/"(h)"/ n/*/l/ |
| 226 |
complete {refile,sprev,snext,scan,pick,rmm,inc,folder,show} \ |
188 |
complete unlimit c/-/"(h)"/ n/*/l/ |
| 227 |
"c@+@F:$HOME/Mail/@" |
|
|
| 228 |
|
189 |
|
| 229 |
# these and interrupt handling from Jaap Vermeulen <jaap@sequent.com> |
190 |
#complete -co* p/0/"(compress)"/ # make compress completion |
| 230 |
complete {rexec,rxexec,rxterm,rmterm} \ |
191 |
# # not ambiguous |
| 231 |
'p/1/$hosts/' 'c/-/(l L E)/' 'n/-l/u/' 'n/-L/f/' \ |
|
|
| 232 |
'n/-E/e/' 'n/*/c/' |
| 233 |
complete kill 'c/-/S/' 'c/%/j/' \ |
| 234 |
'n/*/`ps -u $LOGNAME | awk '"'"'{print $1}'"'"'`/' |
| 235 |
|
192 |
|
| 236 |
# these from Marc Horowitz <marc@cam.ov.com> |
193 |
# "zcat" may be linked to "compress" or "gzip" |
| 237 |
complete attach 'n/-mountpoint/d/' 'n/-m/d/' 'n/-type/(afs nfs rvd ufs)/' \ |
194 |
if (-X zcat) then |
| 238 |
'n/-t/(afs nfs rvd ufs)/' 'n/-user/u/' 'n/-U/u/' \ |
195 |
zcat --version >& /dev/null |
| 239 |
'c/-/(verbose quiet force printpath lookup debug map \ |
196 |
if ($status != 0) then |
| 240 |
nomap remap zephyr nozephyr readonly write \ |
197 |
complete zcat n/*/f:*.Z/ |
| 241 |
mountpoint noexplicit explicit type mountoptions \ |
198 |
else |
| 242 |
nosetuid setuid override skipfsck lock user host)/' \ |
199 |
complete zcat c/--/"(force help license quiet version)"/ \ |
| 243 |
'n/-e/f/' 'n/*/()/' |
200 |
c/-/"(f h L q V -)"/ \ |
| 244 |
complete hesinfo 'p/1/u/' \ |
201 |
n/*/f:*.{gz,Z,z,zip}/ |
| 245 |
'p/2/(passwd group uid grplist pcap pobox cluster \ |
202 |
endif |
| 246 |
filsys sloc service)/' |
203 |
endif |
| 247 |
|
204 |
|
| 248 |
# these from E. Jay Berkenbilt <ejb@ERA.COM> |
205 |
complete finger c/*@/\$hosts/ n/*/u/@ |
| 249 |
# = isn't always followed by a filename or a path anymore - jgotts |
206 |
complete ping p/1/\$hosts/ |
| 250 |
if ($?traditional_complete) then |
207 |
complete traceroute p/1/\$hosts/ |
| 251 |
complete ./configure \ |
|
|
| 252 |
'c/--*=/f/' 'c/--{cache-file,prefix,exec-prefix,\ |
| 253 |
bindir,sbindir,libexecdir,datadir,\ |
| 254 |
sysconfdir,sharedstatedir,localstatedir,\ |
| 255 |
libdir,includedir,oldincludedir,infodir,\ |
| 256 |
mandir,srcdir}/(=)//' \ |
| 257 |
'c/--/(cache-file verbose prefix exec-prefix bindir \ |
| 258 |
sbindir libexecdir datadir sysconfdir \ |
| 259 |
sharedstatedir localstatedir libdir \ |
| 260 |
includedir oldincludedir infodir mandir \ |
| 261 |
srcdir)//' |
| 262 |
else |
| 263 |
complete ./configure \ |
| 264 |
'c@--{prefix,exec-prefix,bindir,sbindir,libexecdir,datadir,sysconfdir,sharedstatedir,localstatedir,infodir,mandir,srcdir,x-includes,x-libraries}=*@x:<directory e.g. /usr/local>'@ \ |
| 265 |
'c/--cachefile=*/x:<filename>/' \ |
| 266 |
'c/--{enable,disable,with}-*/x:<feature>//' \ |
| 267 |
'c/--*=/x:<directory>//' \ |
| 268 |
'c/--/(prefix= exec-prefix= bindir= \ |
| 269 |
sbindir= libexecdir= datadir= sysconfdir= \ |
| 270 |
sharedstatedir= localstatedir= infodir= \ |
| 271 |
mandir= srcdir= x-includes= x-libraries= cachefile= \ |
| 272 |
enable- disable- with- \ |
| 273 |
help no-create quiet silent version verbose )//' |
| 274 |
endif |
| 275 |
complete gs 'c/-sDEVICE=/(x11 cdjmono cdj550 epson eps9high epsonc \ |
| 276 |
dfaxhigh dfaxlow laserjet ljet4 sparc pbm \ |
| 277 |
pbmraw pgm pgmraw ppm ppmraw bit)/' \ |
| 278 |
'c/-sOutputFile=/f/' 'c/-s/(DEVICE OutputFile)/=' \ |
| 279 |
'c/-d/(NODISPLAY NOPLATFONTS NOPAUSE)/' 'n/*/f/' |
| 280 |
complete perl 'n/-S/c/' |
| 281 |
complete printenv 'n/*/e/' |
| 282 |
complete sccs p/1/"(admin cdc check clean comb deledit delget \ |
| 283 |
delta diffs edit enter fix get help info \ |
| 284 |
print prs prt rmdel sccsdiff tell unedit \ |
| 285 |
unget val what)"/ |
| 286 |
complete setenv 'p/1/e/' 'c/*:/f/' |
| 287 |
|
208 |
|
| 288 |
# these and method of setting hosts from Kimmo Suominen <kim@tac.nyc.ny.us> |
209 |
complete {talk,ntalk,phone} \ |
| 289 |
if ( -f "$HOME/.mh_profile" && -x "`which folders`" ) then |
210 |
p/1/'`users | tr " " "\012" | uniq`'/ \ |
|
|
211 |
n/*/\`who\ \|\ grep\ \$:1\ \|\ awk\ \'\{\ print\ \$2\ \}\'\`/ |
| 290 |
|
212 |
|
| 291 |
if ( ! $?FOLDERS ) setenv FOLDERS "`folders -fast -recurse`" |
213 |
complete ftp c/-/"(d i g n v)"/ n/-/\$hosts/ p/1/\$hosts/ n/*/n/ |
| 292 |
if ( ! $?MHA ) setenv MHA "`ali | sed -e '/^ /d' -e 's/:.*//'`" |
|
|
| 293 |
|
214 |
|
| 294 |
set folders = ( $FOLDERS ) |
215 |
# this one is simple... |
| 295 |
set mha = ( $MHA ) |
216 |
#complete rcp c/*:/f/ C@[./\$~]*@f@ n/*/\$hosts/: |
|
|
217 |
# From Michael Schroeder <mlschroe@immd4.informatik.uni-erlangen.de> |
| 218 |
# This one will rsh to the file to fetch the list of files! |
| 219 |
complete rcp 'c%*@*:%`set q=$:-0;set q="$q:s/@/ /";set q="$q:s/:/ /";set q=($q " ");rsh $q[2] -l $q[1] ls -dp $q[3]\*`%' 'c%*:%`set q=$:-0;set q="$q:s/:/ /";set q=($q " ");rsh $q[1] ls -dp $q[2]\*`%' 'c%*@%$hosts%:' 'C@[./$~]*@f@' 'n/*/$hosts/:' |
| 296 |
|
220 |
|
| 297 |
complete ali \ |
221 |
complete dd \ |
| 298 |
'c/-/(alias nolist list nonormalize normalize nouser user help)/' \ |
222 |
c/--/"(help version)"/ c/[io]f=/f/ \ |
| 299 |
'n,-alias,f,' |
223 |
c/conv=*,/"(ascii ebcdic ibm block unblock \ |
|
|
224 |
lcase notrunc ucase swab noerror sync)"/,\ |
| 225 |
c/conv=/"(ascii ebcdic ibm block unblock \ |
| 226 |
lcase notrunc ucase swab noerror sync)"/,\ |
| 227 |
c/*=/x:'<number>'/ \ |
| 228 |
n/*/"(if of conv ibs obs bs cbs files skip file seek count)"/= |
| 300 |
|
229 |
|
| 301 |
complete anno \ |
230 |
complete nslookup p/1/x:'<host>'/ p/2/\$hosts/ |
| 302 |
'c/-/(component noinplace inplace nodate date text help)/' \ |
|
|
| 303 |
'c,+,$folders,' \ |
| 304 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
| 305 |
|
231 |
|
| 306 |
complete burst \ |
232 |
complete ar \ |
| 307 |
'c/-/(noinplace inplace noquiet quiet noverbose verbose help)/' \ |
233 |
c/[dmpqrtx]/"(c l o u v a b i)"/ \ |
| 308 |
'c,+,$folders,' \ |
234 |
p/1/"(d m p q r t x)"// \ |
| 309 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
235 |
p/2/f:*.a/ \ |
|
|
236 |
p/*/f:*.o/ |
| 310 |
|
237 |
|
| 311 |
complete comp \ |
238 |
# these should be merged with the MH completion hacks below - jgotts |
| 312 |
'c/-/(draftfolder draftmessage nodraftfolder editor noedit file form nouse use whatnowproc nowhatnowproc help)/' \ |
239 |
complete {refile,sprev,snext,scan,pick,rmm,inc,folder,show} \ |
| 313 |
'c,+,$folders,' \ |
240 |
"c@+@F:$HOME/Mail/@" |
| 314 |
'n,-whatnowproc,c,' \ |
|
|
| 315 |
'n,-file,f,'\ |
| 316 |
'n,-form,f,'\ |
| 317 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
| 318 |
|
241 |
|
| 319 |
complete dist \ |
242 |
# these and interrupt handling from Jaap Vermeulen <jaap@sequent.com> |
| 320 |
'c/-/(noannotate annotate draftfolder draftmessage nodraftfolder editor noedit form noinplace inplace whatnowproc nowhatnowproc help)/' \ |
243 |
complete {rexec,rxexec,rxterm,rmterm} \ |
| 321 |
'c,+,$folders,' \ |
244 |
'p/1/$hosts/' \ |
| 322 |
'n,-whatnowproc,c,' \ |
245 |
'c/-/(l L E)/' \ |
| 323 |
'n,-form,f,'\ |
246 |
'n/-l/u/' \ |
| 324 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
247 |
'n/-L/f/' \ |
|
|
248 |
'n/-E/e/' \ |
| 249 |
'n/*/c/' |
| 250 |
complete kill \ |
| 251 |
'c/-/S/' \ |
| 252 |
'c/%/j/' \ |
| 253 |
'n/*/`ps -u $LOGNAME | awk '"'"'{print $1}'"'"'`/' |
| 325 |
|
254 |
|
| 326 |
complete folder \ |
255 |
# these from Marc Horowitz <marc@cam.ov.com> |
| 327 |
'c/-/(all nofast fast noheader header nopack pack noverbose verbose norecurse recurse nototal total noprint print nolist list push pop help)/' \ |
256 |
complete attach \ |
| 328 |
'c,+,$folders,' \ |
257 |
'n/-mountpoint/d/' \ |
| 329 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
258 |
'n/-m/d/' \ |
|
|
259 |
'n/-type/(afs nfs rvd ufs)/' \ |
| 260 |
'n/-t/(afs nfs rvd ufs)/' \ |
| 261 |
'n/-user/u/' \ |
| 262 |
'n/-U/u/' \ |
| 263 |
'c/-/(verbose quiet force printpath lookup debug map nomap remap zephyr \ |
| 264 |
nozephyr readonly write mountpoint noexplicit explicit type \ |
| 265 |
mountoptions nosetuid setuid override skipfsck lock user host)/' \ |
| 266 |
'n/-e/f/' \ |
| 267 |
'n/*/()/' |
| 268 |
complete hesinfo \ |
| 269 |
'p/1/u/' \ |
| 270 |
'p/2/(passwd group uid grplist pcap pobox cluster filsys sloc service)/' |
| 330 |
|
271 |
|
| 331 |
complete folders \ |
272 |
complete ./configure \ |
| 332 |
'c/-/(all nofast fast noheader header nopack pack noverbose verbose norecurse recurse nototal total noprint print nolist list push pop help)/' \ |
273 |
'c@--{prefix,exec-prefix,bindir,sbindir,libexecdir,datadir,sysconfdir,sharedstatedir,localstatedir,infodir,mandir,srcdir,x-includes,x-libraries}=*@x:<directory e.g. /usr/local>'@ \ |
| 333 |
'c,+,$folders,' \ |
274 |
'c/--cachefile=*/x:<filename>/' \ |
| 334 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
275 |
'c/--{enable,disable,with}-*/x:<feature>//' \ |
|
|
276 |
'c/--*=/x:<directory>//' \ |
| 277 |
'c/--/(prefix= exec-prefix= bindir= sbindir= libexecdir= datadir= \ |
| 278 |
sysconfdir= sharedstatedir= localstatedir= infodir= mandir= \ |
| 279 |
srcdir= x-includes= x-libraries= cachefile= enable- disable- \ |
| 280 |
with- help no-create quiet silent version verbose )//' |
| 335 |
|
281 |
|
| 336 |
complete forw \ |
282 |
complete gs \ |
| 337 |
'c/-/(noannotate annotate draftfolder draftmessage nodraftfolder editor noedit filter form noformat format noinplace inplace digest issue volume whatnowproc nowhatnowproc help)/' \ |
283 |
'c/-sDEVICE=/(x11 cdjmono cdj550 epson eps9high epsonc dfaxhigh dfaxlow \ |
| 338 |
'c,+,$folders,' \ |
284 |
laserjet ljet4 sparc pbm pbmraw pgm pgmraw ppm ppmraw bit)/' \ |
| 339 |
'n,-whatnowproc,c,' \ |
285 |
'c/-sOutputFile=/f/' 'c/-s/(DEVICE OutputFile)/=' \ |
| 340 |
'n,-filter,f,'\ |
286 |
'c/-d/(NODISPLAY NOPLATFONTS NOPAUSE)/' 'n/*/f/' |
| 341 |
'n,-form,f,'\ |
287 |
complete perl 'n/-S/c/' |
| 342 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
288 |
complete sccs \ |
|
|
289 |
p/1/"(admin cdc check clean comb deledit delget delta diffs edit enter \ |
| 290 |
fix get help info print prs prt rmdel sccsdiff tell unedit unget \ |
| 291 |
val what)"/ |
| 343 |
|
292 |
|
| 344 |
complete inc \ |
293 |
complete printenv 'n/*/e/' |
| 345 |
'c/-/(audit file noaudit nochangecur changecur file form format nosilent silent notruncate truncate width help)/' \ |
294 |
complete setenv 'p/1/e/' 'c/*:/f/' |
| 346 |
'c,+,$folders,' \ |
|
|
| 347 |
'n,-audit,f,'\ |
| 348 |
'n,-form,f,' |
| 349 |
|
295 |
|
| 350 |
complete mark \ |
296 |
# these and method of setting hosts from Kimmo Suominen <kim@tac.nyc.ny.us> |
| 351 |
'c/-/(add delete list sequence nopublic public nozero zero help)/' \ |
297 |
if ( -f "$HOME/.mh_profile" && -X folders ) then |
| 352 |
'c,+,$folders,' \ |
298 |
if ( ! $?FOLDERS ) setenv FOLDERS "`folders -fast -recurse`" |
| 353 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
299 |
if ( ! $?MHA ) setenv MHA "`ali | sed -e '/^ /d' -e 's/:.*//'`" |
| 354 |
|
300 |
|
| 355 |
complete mhmail \ |
301 |
set folders = ( $FOLDERS ) |
| 356 |
'c/-/(body cc from subject help)/' \ |
302 |
set mha = ( $MHA ) |
| 357 |
'n,-cc,$mha,' \ |
|
|
| 358 |
'n,-from,$mha,' \ |
| 359 |
'n/*/$mha/' |
| 360 |
|
303 |
|
| 361 |
complete mhpath \ |
304 |
complete ali \ |
| 362 |
'c/-/(help)/' \ |
305 |
'c/-/(alias nolist list nonormalize normalize nouser user help)/' \ |
| 363 |
'c,+,$folders,' \ |
306 |
'n,-alias,f,' |
| 364 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
|
|
| 365 |
|
307 |
|
| 366 |
complete msgchk \ |
308 |
complete anno \ |
| 367 |
'c/-/(nodate date nonotify notify help)/' |
309 |
'c/-/(component noinplace inplace nodate date text help)/' \ |
|
|
310 |
'c,+,$folders,' \ |
| 311 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 368 |
|
312 |
|
| 369 |
complete msh \ |
313 |
complete burst \ |
| 370 |
'c/-/(prompt noscan scan notopcur topcur help)/' |
314 |
'c/-/(noinplace inplace noquiet quiet noverbose verbose help)/' \ |
|
|
315 |
'c,+,$folders,' \ |
| 316 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 371 |
|
317 |
|
| 372 |
complete next \ |
318 |
complete comp \ |
| 373 |
'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \ |
319 |
'c/-/(draftfolder draftmessage nodraftfolder editor noedit file form nouse use whatnowproc nowhatnowproc help)/' \ |
| 374 |
'c,+,$folders,' \ |
320 |
'c,+,$folders,' \ |
| 375 |
'n,-moreproc,c,' \ |
321 |
'n,-whatnowproc,c,' \ |
| 376 |
'n,-showproc,c,' \ |
322 |
'n,-file,f,'\ |
| 377 |
'n,-form,f,' |
323 |
'n,-form,f,'\ |
|
|
324 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 378 |
|
325 |
|
| 379 |
complete packf \ |
326 |
complete dist \ |
| 380 |
'c/-/(file help)/' \ |
327 |
'c/-/(noannotate annotate draftfolder draftmessage nodraftfolder editor noedit form noinplace inplace whatnowproc nowhatnowproc help)/' \ |
| 381 |
'c,+,$folders,' \ |
328 |
'c,+,$folders,' \ |
| 382 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
329 |
'n,-whatnowproc,c,' \ |
|
|
330 |
'n,-form,f,'\ |
| 331 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 383 |
|
332 |
|
| 384 |
complete pick \ |
333 |
complete folder \ |
| 385 |
'c/-/(and or not lbrace rbrace cc date from search subject to othercomponent after before datefield sequence nopublic public nozero zero nolist list help)/' \ |
334 |
'c/-/(all nofast fast noheader header nopack pack noverbose verbose norecurse recurse nototal total noprint print nolist list push pop help)/' \ |
| 386 |
'c,+,$folders,' \ |
335 |
'c,+,$folders,' \ |
| 387 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
336 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 388 |
|
337 |
|
| 389 |
complete prev \ |
338 |
complete folders \ |
| 390 |
'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \ |
339 |
'c/-/(all nofast fast noheader header nopack pack noverbose verbose norecurse recurse nototal total noprint print nolist list push pop help)/' \ |
| 391 |
'c,+,$folders,' \ |
340 |
'c,+,$folders,' \ |
| 392 |
'n,-moreproc,c,' \ |
341 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 393 |
'n,-showproc,c,' \ |
|
|
| 394 |
'n,-form,f,' |
| 395 |
|
342 |
|
| 396 |
complete prompter \ |
343 |
complete forw \ |
| 397 |
'c/-/(erase kill noprepend prepend norapid rapid nodoteof doteof help)/' |
344 |
'c/-/(noannotate annotate draftfolder draftmessage nodraftfolder editor noedit filter form noformat format noinplace inplace digest issue volume whatnowproc nowhatnowproc help)/' \ |
|
|
345 |
'c,+,$folders,' \ |
| 346 |
'n,-whatnowproc,c,' \ |
| 347 |
'n,-filter,f,'\ |
| 348 |
'n,-form,f,'\ |
| 349 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 398 |
|
350 |
|
| 399 |
complete refile \ |
351 |
complete inc \ |
| 400 |
'c/-/(draft nolink link nopreserve preserve src file help)/' \ |
352 |
'c/-/(audit file noaudit nochangecur changecur file form format nosilent silent notruncate truncate width help)/' \ |
| 401 |
'c,+,$folders,' \ |
353 |
'c,+,$folders,' \ |
| 402 |
'n,-file,f,'\ |
354 |
'n,-audit,f,'\ |
| 403 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
355 |
'n,-form,f,' |
| 404 |
|
356 |
|
| 405 |
complete rmf \ |
357 |
complete mark \ |
| 406 |
'c/-/(nointeractive interactive help)/' \ |
358 |
'c/-/(add delete list sequence nopublic public nozero zero help)/' \ |
| 407 |
'c,+,$folders,' |
359 |
'c,+,$folders,' \ |
|
|
360 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 408 |
|
361 |
|
| 409 |
complete rmm \ |
362 |
complete mhmail \ |
| 410 |
'c/-/(help)/' \ |
363 |
'c/-/(body cc from subject help)/' \ |
| 411 |
'c,+,$folders,' \ |
364 |
'n,-cc,$mha,' \ |
| 412 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
365 |
'n,-from,$mha,' \ |
|
|
366 |
'n/*/$mha/' |
| 413 |
|
367 |
|
| 414 |
complete scan \ |
368 |
complete mhpath \ |
| 415 |
'c/-/(noclear clear form format noheader header width noreverse reverse file help)/' \ |
369 |
'c/-/(help)/' \ |
| 416 |
'c,+,$folders,' \ |
370 |
'c,+,$folders,' \ |
| 417 |
'n,-form,f,'\ |
371 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 418 |
'n,-file,f,'\ |
|
|
| 419 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
| 420 |
|
372 |
|
| 421 |
complete send \ |
373 |
complete msgchk \ |
| 422 |
'c/-/(alias draft draftfolder draftmessage nodraftfolder filter nofilter noformat format noforward forward nomsgid msgid nopush push noverbose verbose nowatch watch width help)/' \ |
374 |
'c/-/(nodate date nonotify notify help)/' |
| 423 |
'n,-alias,f,'\ |
|
|
| 424 |
'n,-filter,f,' |
| 425 |
|
375 |
|
| 426 |
complete show \ |
376 |
complete msh \ |
| 427 |
'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \ |
377 |
'c/-/(prompt noscan scan notopcur topcur help)/' |
| 428 |
'c,+,$folders,' \ |
|
|
| 429 |
'n,-moreproc,c,' \ |
| 430 |
'n,-showproc,c,' \ |
| 431 |
'n,-form,f,'\ |
| 432 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
| 433 |
|
378 |
|
| 434 |
complete sortm \ |
379 |
complete next \ |
| 435 |
'c/-/(datefield textfield notextfield limit nolimit noverbose verbose help)/' \ |
380 |
'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \ |
| 436 |
'c,+,$folders,' \ |
381 |
'c,+,$folders,' \ |
| 437 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
382 |
'n,-moreproc,c,' \ |
|
|
383 |
'n,-showproc,c,' \ |
| 384 |
'n,-form,f,' |
| 438 |
|
385 |
|
| 439 |
complete vmh \ |
386 |
complete packf \ |
| 440 |
'c/-/(prompt vmhproc novmhproc help)/' \ |
387 |
'c/-/(file help)/' \ |
| 441 |
'n,-vmhproc,c,' |
388 |
'c,+,$folders,' \ |
|
|
389 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 442 |
|
390 |
|
| 443 |
complete whatnow \ |
391 |
complete pick \ |
| 444 |
'c/-/(draftfolder draftmessage nodraftfolder editor noedit prompt help)/' |
392 |
'c/-/(and or not lbrace rbrace cc date from search subject to othercomponent after before datefield sequence nopublic public nozero zero nolist list help)/' \ |
|
|
393 |
'c,+,$folders,' \ |
| 394 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 445 |
|
395 |
|
| 446 |
complete whom \ |
396 |
complete prev \ |
| 447 |
'c/-/(alias nocheck check draft draftfolder draftmessage nodraftfolder help)/' \ |
397 |
'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \ |
| 448 |
'n,-alias,f,' |
398 |
'c,+,$folders,' \ |
|
|
399 |
'n,-moreproc,c,' \ |
| 400 |
'n,-showproc,c,' \ |
| 401 |
'n,-form,f,' |
| 449 |
|
402 |
|
| 450 |
complete plum \ |
403 |
complete prompter \ |
| 451 |
'c/-/()/' \ |
404 |
'c/-/(erase kill noprepend prepend norapid rapid nodoteof doteof help)/' |
| 452 |
'c,+,$folders,' \ |
|
|
| 453 |
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,' |
| 454 |
|
405 |
|
| 455 |
complete mail \ |
406 |
complete refile \ |
| 456 |
'c/-/()/' \ |
407 |
'c/-/(draft nolink link nopreserve preserve src file help)/' \ |
| 457 |
'n/*/$mha/' |
408 |
'c,+,$folders,' \ |
|
|
409 |
'n,-file,f,'\ |
| 410 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 458 |
|
411 |
|
| 459 |
endif |
412 |
complete rmf \ |
|
|
413 |
'c/-/(nointeractive interactive help)/' \ |
| 414 |
'c,+,$folders,' |
| 460 |
|
415 |
|
| 461 |
#from Dan Nicolaescu <dann@ics.uci.edu> |
416 |
complete rmm \ |
| 462 |
if ( $?MODULESHOME ) then |
417 |
'c/-/(help)/' \ |
| 463 |
alias Compl_module 'find ${MODULEPATH:as/:/ /} -name .version -o -name .modulea\* -prune -o -print | sed `echo "-e s@${MODULEPATH:as%:%/\*@@g -e s@%}/\*@@g"`' |
418 |
'c,+,$folders,' \ |
| 464 |
complete module 'p%1%(add load unload switch display avail use unuse update purge list clear help initadd initrm initswitch initlist initclear)%' \ |
419 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 465 |
'n%{unl*,sw*,inits*}%`echo "$LOADEDMODULES:as/:/ /"`%' \ |
|
|
| 466 |
'n%{lo*,di*,he*,inita*,initr*}%`eval Compl_module`%' \ |
| 467 |
'N%{sw*,initsw*}%`eval Compl_module`%' 'C%-%(-append)%' 'n%{use,unu*,av*}%d%' 'n%-append%d%' \ |
| 468 |
'C%[^-]*%`eval Compl_module`%' |
| 469 |
endif |
| 470 |
|
420 |
|
| 471 |
# from George Cox |
421 |
complete scan \ |
| 472 |
complete acroread 'p/*/f:*.{pdf,PDF}/' |
422 |
'c/-/(noclear clear form format noheader header width noreverse reverse file help)/' \ |
| 473 |
complete apachectl 'c/*/(start stop restart fullstatus status graceful \ |
423 |
'c,+,$folders,' \ |
| 474 |
configtest help)/' |
424 |
'n,-form,f,'\ |
| 475 |
complete appletviewer 'p/*/f:*.class/' |
425 |
'n,-file,f,'\ |
| 476 |
complete bison 'c/--/(debug defines file-prefix= fixed-output-files \ |
426 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 477 |
help name-prefix= no-lines no-parser output= \ |
427 |
|
| 478 |
token-table verbose version yacc)/' \ |
428 |
complete send \ |
| 479 |
'c/-/(b d h k l n o p t v y V)/' 'n/-b/f/' 'n/-o/f/' \ |
429 |
'c/-/(alias draft draftfolder draftmessage nodraftfolder filter nofilter noformat format noforward forward nomsgid msgid nopush push noverbose verbose nowatch watch width help)/' \ |
| 480 |
'n/-p/f/' |
430 |
'n,-alias,f,'\ |
| 481 |
complete bzcat c/--/"(help test quiet verbose license version)"/ \ |
431 |
'n,-filter,f,' |
|
|
432 |
|
| 433 |
complete show \ |
| 434 |
'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \ |
| 435 |
'c,+,$folders,' \ |
| 436 |
'n,-moreproc,c,' \ |
| 437 |
'n,-showproc,c,' \ |
| 438 |
'n,-form,f,'\ |
| 439 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 440 |
|
| 441 |
complete sortm \ |
| 442 |
'c/-/(datefield textfield notextfield limit nolimit noverbose verbose help)/' \ |
| 443 |
'c,+,$folders,' \ |
| 444 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 445 |
|
| 446 |
complete vmh \ |
| 447 |
'c/-/(prompt vmhproc novmhproc help)/' \ |
| 448 |
'n,-vmhproc,c,' |
| 449 |
|
| 450 |
complete whatnow \ |
| 451 |
'c/-/(draftfolder draftmessage nodraftfolder editor noedit prompt help)/' |
| 452 |
|
| 453 |
complete whom \ |
| 454 |
'c/-/(alias nocheck check draft draftfolder draftmessage nodraftfolder help)/' \ |
| 455 |
'n,-alias,f,' |
| 456 |
|
| 457 |
complete plum \ |
| 458 |
'c/-/()/' \ |
| 459 |
'c,+,$folders,' \ |
| 460 |
'n,*,`(mark | sed "s/:.*//" ; echo next cur prev first last)|tr " " "\012" | sort -u`,' |
| 461 |
|
| 462 |
complete mail \ |
| 463 |
'c/-/()/' \ |
| 464 |
'n/*/$mha/' |
| 465 |
|
| 466 |
endif |
| 467 |
|
| 468 |
#from Dan Nicolaescu <dann@ics.uci.edu> |
| 469 |
if ( $?MODULESHOME ) then |
| 470 |
alias Compl_module \ |
| 471 |
'find ${MODULEPATH:as/:/ /} -name .version -o -name .modulea\* -prune \ |
| 472 |
-o -print | sed `echo "-e s@${MODULEPATH:as%:%/\*@@g -e s@%}/\*@@g"`' |
| 473 |
complete module \ |
| 474 |
'p%1%(add load unload switch display avail use unuse update purge list \ |
| 475 |
clear help initadd initrm initswitch initlist initclear)%' \ |
| 476 |
'n%{unl*,sw*,inits*}%`echo "$LOADEDMODULES:as/:/ /"`%' \ |
| 477 |
'n%{lo*,di*,he*,inita*,initr*}%`eval Compl_module`%' \ |
| 478 |
'N%{sw*,initsw*}%`eval Compl_module`%' \ |
| 479 |
'C%-%(-append)%' \ |
| 480 |
'n%{use,unu*,av*}%d%' \ |
| 481 |
'n%-append%d%' \ |
| 482 |
'C%[^-]*%`eval Compl_module`%' |
| 483 |
endif |
| 484 |
|
| 485 |
# from George Cox |
| 486 |
complete acroread 'p/*/f:*.{pdf,PDF}/' |
| 487 |
complete apachectl 'c/*/(start stop restart fullstatus status graceful \ |
| 488 |
configtest help)/' |
| 489 |
complete appletviewer 'p/*/f:*.class/' |
| 490 |
complete bison 'c/--/(debug defines file-prefix= fixed-output-files \ |
| 491 |
help name-prefix= no-lines no-parser output= \ |
| 492 |
token-table verbose version yacc)/' \ |
| 493 |
'c/-/(b d h k l n o p t v y V)/' \ |
| 494 |
'n/-b/f/' 'n/-o/f/' 'n/-p/f/' |
| 495 |
complete bzcat c/--/"(help test quiet verbose license version)"/ \ |
| 482 |
c/-/"(h t L V -)"/ n/*/f:*.{bz2,tbz}/ |
496 |
c/-/"(h t L V -)"/ n/*/f:*.{bz2,tbz}/ |
| 483 |
complete bunzip2 c/--/"(help keep force test stdout quiet verbose \ |
497 |
complete bunzip2 c/--/"(help keep force test stdout quiet verbose \ |
| 484 |
license version)"/ c/-/"(h k f t c q v L V -)"/ \ |
498 |
license version)"/ \ |
|
|
499 |
c/-/"(h k f t c q v L V -)"/ \ |
| 485 |
n/*/f:*.{bz2,tbz}/ |
500 |
n/*/f:*.{bz2,tbz}/ |
| 486 |
complete bzip2 c/--/"(help decompress compress keep force test \ |
501 |
complete bzip2 c/--/"(help decompress compress keep force test \ |
| 487 |
stdout quiet verbose license version small)"/ \ |
502 |
stdout quiet verbose license version small)"/ \ |
| 488 |
c/-/"(h d z k f t c q v L V s 1 2 3 4 5 6 7 8 9 -)"/ \ |
503 |
c/-/"(h d z k f t c q v L V s 1 2 3 4 5 6 7 8 9 -)"/ \ |
| 489 |
n/{-d,--decompress}/f:*.{bz2,tbz}/ \ |
504 |
n/{-d,--decompress}/f:*.{bz2,tbz}/ \ |
| 490 |
N/{-d,--decompress}/f:*.{bz2,tbz}/ n/*/f:^*.{bz2,tbz}/ |
505 |
N/{-d,--decompress}/f:*.{bz2,tbz}/ n/*/f:^*.{bz2,tbz}/ |
| 491 |
complete c++ 'p/*/f:*.{c++,cxx,c,cc,C,cpp}/' |
506 |
complete c++ 'p/*/f:*.{c++,cxx,c,cc,C,cpp}/' |
| 492 |
complete co 'p@1@`\ls -1a RCS | sed -e "s/\(.*\),v/\1/"`@' |
507 |
complete co 'p@1@`\ls -1a RCS | sed -e "s/\(.*\),v/\1/"`@' |
| 493 |
complete crontab 'n/-u/u/' |
508 |
complete crontab 'n/-u/u/' |
| 494 |
complete camcontrol 'p/1/(cmd debug defects devlist eject inquiry \ |
509 |
complete camcontrol 'p/1/(cmd debug defects devlist eject inquiry \ |
| 495 |
modepage negotiate periphlist rescan reset start \ |
510 |
modepage negotiate periphlist rescan reset \ |
| 496 |
stop tags tur)/' |
511 |
start stop tags tur)/' |
| 497 |
complete ctlinnd 'p/1/(addhist allow begin cancel changegroup \ |
512 |
complete ctlinnd 'p/1/(addhist allow begin cancel changegroup \ |
| 498 |
checkfile drop feedinfo flush flushlogs go hangup \ |
513 |
checkfile drop feedinfo flush flushlogs go \ |
| 499 |
logmode mode name newgroup param pause readers refile \ |
514 |
hangup logmode mode name newgroup param pause \ |
| 500 |
reject reload renumber reserve rmgroup send shutdown \ |
515 |
readers refile reject reload renumber reserve \ |
| 501 |
kill throttle trace xabort xexec)/' |
516 |
rmgroup send shutdown kill throttle trace \ |
| 502 |
complete cvs 'c/--/(help help-commands help-synonyms)/' \ |
517 |
xabort xexec)/' |
| 503 |
'p/1/(add admin annotate checkout commit diff \ |
518 |
complete cvs 'c/--/(help help-commands help-synonyms)/' \ |
| 504 |
edit editors export history import init log login \ |
519 |
'p/1/(add admin annotate checkout commit diff edit \ |
| 505 |
logout rdiff release remove rtag status tag unedit \ |
520 |
editors export history import init log login \ |
| 506 |
update watch watchers)/' 'n/-a/(edit unedit commit \ |
521 |
logout rdiff release remove rtag status tag \ |
| 507 |
all none)/' 'n/watch/(on off add remove)/' |
522 |
unedit update watch watchers)/' \ |
| 508 |
complete svn 'C@file:///@`'"${HOME}/etc/tcsh/complete.d/svn"'`@@' \ |
523 |
'n/-a/(edit unedit commit all none)/' \ |
|
|
524 |
'n/watch/(on off add remove)/' |
| 525 |
complete svn 'C@file:///@`'"${HOME}/etc/tcsh/complete.d/svn"'`@@' \ |
| 509 |
'n@ls@(file:/// svn+ssh:// svn://)@@' \ |
526 |
'n@ls@(file:/// svn+ssh:// svn://)@@' \ |
| 510 |
'n@help@(add blame cat checkout \ |
527 |
'n@help@(add blame cat checkout cleanup commit copy \ |
| 511 |
cleanup commit copy delete export help \ |
528 |
delete export help import info list ls \ |
| 512 |
import info list ls lock log merge mkdir \ |
529 |
lock log merge mkdir move propdel propedit \ |
| 513 |
move propdel propedit propget proplist \ |
530 |
propget proplist propset resolved revert \ |
| 514 |
propset resolved revert status switch unlock \ |
531 |
status switch unlock update)@' \ |
| 515 |
update)@' 'p@1@(add blame cat checkout \ |
532 |
'p@1@(add blame cat checkout cleanup commit copy \ |
| 516 |
cleanup commit copy delete export help \ |
533 |
delete export help import info list ls lock \ |
| 517 |
import info list ls lock log merge mkdir \ |
534 |
log merge mkdir move propdel propedit propget \ |
| 518 |
move propdel propedit propget proplist \ |
535 |
proplist propset resolved revert status switch \ |
| 519 |
propset resolved revert status switch unlock \ |
536 |
unlock update)@' |
| 520 |
update)@' |
537 |
|
| 521 |
complete cxx 'p/*/f:*.{c++,cxx,c,cc,C,cpp}/' |
538 |
complete cxx 'p/*/f:*.{c++,cxx,c,cc,C,cpp}/' |
| 522 |
complete detex 'p/*/f:*.tex/' |
539 |
complete detex 'p/*/f:*.tex/' |
| 523 |
complete edquota 'n/*/u/' |
540 |
complete edquota 'n/*/u/' |
| 524 |
complete exec 'p/1/c/' |
541 |
complete exec 'p/1/c/' |
| 525 |
complete ghostview 'p/*/f:*.ps/' |
542 |
complete ghostview 'p/*/f:*.ps/' |
| 526 |
complete gv 'p/*/f:*.ps/' |
543 |
complete gv 'p/*/f:*.ps/' |
| 527 |
complete ifconfig 'p@1@`ifconfig -l`@' 'n/*/(range phase link netmask \ |
544 |
complete ifconfig 'p@1@`ifconfig -l`@' \ |
| 528 |
mtu vlandev vlan metric mediaopt down delete \ |
545 |
'n/*/(range phase link netmask mtu vlandev vlan \ |
| 529 |
broadcast arp debug)/' |
546 |
metric mediaopt down delete broadcast arp debug)/' |
| 530 |
complete imake 'c/-I/d/' |
547 |
complete imake 'c/-I/d/' |
| 531 |
complete ipfw 'p/1/(flush add delete list show zero)/' \ |
548 |
complete ipfw 'p/1/(flush add delete list show zero)/' \ |
| 532 |
'n/add/(allow permit accept pass deny drop reject \ |
549 |
'n/add/(allow permit accept pass deny drop reject \ |
| 533 |
reset count skipto num divert port tee port)/' |
550 |
reset count skipto num divert port tee port)/' |
| 534 |
complete javac 'p/*/f:*.java/' |
551 |
complete javac 'p/*/f:*.java/' |
| 535 |
complete ldif2ldbm 'n/-i/f:*.ldif/' |
552 |
complete ldif2ldbm 'n/-i/f:*.ldif/' |
| 536 |
complete libtool 'c/--mode=/(compile execute finish install link \ |
553 |
complete libtool 'c/--mode=/(compile execute finish install link \ |
| 537 |
uninstall)/' 'c/--/(config debug dry-run features \ |
554 |
uninstall)/' \ |
| 538 |
finish help quiet silent version mode=)/' |
555 |
'c/--/(config debug dry-run features finish help \ |
| 539 |
complete libtoolize 'c/--/(automake copy debug dry-run force help ltdl \ |
556 |
quiet silent version mode=)/' |
| 540 |
ltdl-tar version)/' |
557 |
complete libtoolize 'c/--/(automake copy debug dry-run force help ltdl \ |
| 541 |
complete links 'c/-/(assume-codepage async-dns download-dir \ |
558 |
ltdl-tar version)/' |
| 542 |
format-cache-size ftp-proxy help http-proxy \ |
559 |
complete links 'c/-/(assume-codepage async-dns download-dir \ |
| 543 |
max-connections max-connections-to-host \ |
560 |
format-cache-size ftp-proxy help http-proxy \ |
| 544 |
memory-cache-size receive-timeout retries \ |
561 |
max-connections max-connections-to-host \ |
| 545 |
unrestartable-receive-timeout version)/' |
562 |
memory-cache-size receive-timeout retries \ |
| 546 |
complete natd c/-/'(alias_address config deny_incoming dynamic \ |
563 |
unrestartable-receive-timeout version)/' |
| 547 |
inport interface log log_denied log_facility \ |
564 |
complete natd c/-/'(alias_address config deny_incoming dynamic \ |
| 548 |
outport outport port pptpalias proxy_only \ |
565 |
inport interface log log_denied log_facility \ |
| 549 |
proxy_rule redirect_address redirect_port \ |
566 |
outport outport port pptpalias proxy_only \ |
| 550 |
reverse same_ports unregistered_only use_sockets \ |
567 |
proxy_rule redirect_address redirect_port \ |
| 551 |
verbose)'/ 'n@-interface@`ifconfig -l`@' |
568 |
reverse same_ports unregistered_only use_sockets \ |
| 552 |
complete netstat 'n@-I@`ifconfig -l`@' |
569 |
verbose)'/ \ |
| 553 |
complete objdump 'c/--/(adjust-vma= all-headers architecture= \ |
570 |
'n@-interface@`ifconfig -l`@' |
| 554 |
archive-headers debugging demangle disassemble \ |
571 |
complete netstat 'n@-I@`ifconfig -l`@' |
| 555 |
disassemble-all disassemble-zeroes dynamic-reloc \ |
572 |
complete objdump 'c/--/(adjust-vma= all-headers architecture= \ |
| 556 |
dynamic-syms endian= file-headers full-contents \ |
573 |
archive-headers debugging demangle disassemble \ |
| 557 |
headers help info line-numbers no-show-raw-insn \ |
574 |
disassemble-all disassemble-zeroes dynamic-reloc \ |
| 558 |
prefix-addresses private-headers reloc section-headers \ |
575 |
dynamic-syms endian= file-headers full-contents \ |
| 559 |
section=source stabs start-address= stop-address= \ |
576 |
headers help info line-numbers no-show-raw-insn \ |
| 560 |
syms target= version wide)/' \ |
577 |
prefix-addresses private-headers reloc \ |
|
|
578 |
section-headers section=source stabs \ |
| 579 |
start-address= stop-address= syms target= \ |
| 580 |
version wide)/' \ |
| 561 |
'c/-/(a h i f C d D p r R t T x s S l w)/' |
581 |
'c/-/(a h i f C d D p r R t T x s S l w)/' |
| 562 |
complete xmodmap 'c/-/(display help grammar verbose quiet n e pm pk \ |
582 |
complete xmodmap 'c/-/(display help grammar verbose quiet n e pm pk \ |
| 563 |
pke pp)/' |
583 |
pke pp)/' |
| 564 |
complete lynx 'c/-/(accept_all_cookies anonymous assume_charset= \ |
584 |
complete lynx 'c/-/(accept_all_cookies anonymous assume_charset= \ |
| 565 |
assume_local_charset= assume_unrec_charset= auth= base \ |
585 |
assume_local_charset= assume_unrec_charset= \ |
| 566 |
book buried_news cache= case cfg= child cookie_file= \ |
586 |
auth= base book buried_news cache= case cfg= \ |
| 567 |
cookies core crawl debug_partial display= dump editor= \ |
587 |
child cookie_file= cookies core crawl \ |
| 568 |
emacskeys enable_scrollback error_file= force_html \ |
588 |
debug_partial display= dump editor= emacskeys \ |
| 569 |
force_secure forms_options from ftp get_data head help \ |
589 |
enable_scrollback error_file= force_html \ |
| 570 |
hiddenlinks= historical homepage= image_links index= \ |
590 |
force_secure forms_options from ftp get_data \ |
| 571 |
ismap link= localhost mime_header minimal \ |
591 |
head help hiddenlinks= historical homepage= \ |
| 572 |
newschunksize= newsmaxchunk= nobrowse nocc nocolor \ |
592 |
image_links index= ismap link= localhost \ |
| 573 |
nofilereferer nolist nolog nopause noprint noredir \ |
593 |
mime_header minimal newschunksize= \ |
| 574 |
noreferer nostatus number_links partial partial_thres \ |
594 |
newsmaxchunk= nobrowse nocc nocolor \ |
| 575 |
pauth= popup post_data preparsed print pseudo_inlines \ |
595 |
nofilereferer nolist nolog nopause noprint \ |
| 576 |
raw realm reload restrictions= resubmit_posts rlogin \ |
596 |
noredir noreferer nostatus number_links \ |
| 577 |
selective show_cursor soft_dquotes source stack_dump \ |
597 |
partial partial_thres pauth= popup post_data \ |
| 578 |
startfile_ok tagsoup telnet term= tlog trace traversal \ |
598 |
preparsed print pseudo_inlines raw realm \ |
| 579 |
underscore useragent= validate verbose version vikeys \ |
599 |
reload restrictions= resubmit_posts rlogin \ |
| 580 |
width=)/' 'c/(http|ftp)/$URLS/' |
600 |
selective show_cursor soft_dquotes source \ |
| 581 |
complete gmake 'c/{--directory=,--include-dir=}/d/' \ |
601 |
stack_dump startfile_ok tagsoup telnet term= \ |
|
|
602 |
tlog trace traversal underscore useragent= \ |
| 603 |
validate verbose version vikeys width=)/' \ |
| 604 |
'c/(http|ftp)/$URLS/' |
| 605 |
complete gmake 'c/{--directory=,--include-dir=}/d/' \ |
| 582 |
'c/{--assume-new,--assume-old,--makefile,--new-file,--what-if,--file}/f/' \ |
606 |
'c/{--assume-new,--assume-old,--makefile,--new-file,--what-if,--file}/f/' \ |
| 583 |
'c/--/(assume-new= assume-old= debug directory= \ |
607 |
'c/--/(assume-new= assume-old= debug directory= \ |
| 584 |
dry-run environment-overrides file= help \ |
608 |
dry-run environment-overrides file= help \ |
| 585 |
ignore-errors include-dir= jobs[=N] just-print \ |
609 |
ignore-errors include-dir= jobs[=N] just-print \ |
| 586 |
keep-going load-average[=N] makefile= max-load[=N] \ |
610 |
keep-going load-average[=N] makefile= \ |
| 587 |
new-file= no-builtin-rules no-keep-going \ |
611 |
max-load[=N] new-file= no-builtin-rules \ |
| 588 |
no-print-directory old-file= print-data-base \ |
612 |
no-keep-going no-print-directory old-file= \ |
| 589 |
print-directory question quiet recon silent stop \ |
613 |
print-data-base print-directory question quiet \ |
| 590 |
touch version warn-undefined-variables what-if=)/' \ |
614 |
recon silent stop touch version \ |
|
|
615 |
warn-undefined-variables what-if=)/' \ |
| 591 |
'n@*@`cat -s GNUMakefile Makefile makefile |& sed -n -e "/No such file/d" -e "s/^\([A-Za-z0-9-]*\):.*/\1/p"`@' \ |
616 |
'n@*@`cat -s GNUMakefile Makefile makefile |& sed -n -e "/No such file/d" -e "s/^\([A-Za-z0-9-]*\):.*/\1/p"`@' \ |
| 592 |
'n/=/f/' 'n/-f/f/' |
617 |
'n/=/f/' \ |
| 593 |
complete mixer p/1/'(vol bass treble synth pcm speaker mic cd mix \ |
618 |
'n/-f/f/' |
| 594 |
pcm2 rec igain ogain line1 line2 line3)'/ \ |
619 |
complete mixer p/1/'(vol bass treble synth pcm speaker mic cd mix \ |
|
|
620 |
pcm2 rec igain ogain line1 line2 line3)'/ \ |
| 595 |
p@2@'`mixer $:-1 | awk \{\ print\ \$7\ \}`'@ |
621 |
p@2@'`mixer $:-1 | awk \{\ print\ \$7\ \}`'@ |
| 596 |
|
622 |
|
| 597 |
complete mpg123 'c/--/(2to1 4to1 8bit aggressive au audiodevice \ |
623 |
complete mpg123 'c/--/(2to1 4to1 8bit aggressive au audiodevice auth \ |
| 598 |
auth buffer cdr check doublespeed equalizer frames \ |
624 |
buffer cdr check doublespeed equalizer frames \ |
| 599 |
gain halfspeed headphones left lineout list mix mono \ |
625 |
gain halfspeed headphones left lineout list \ |
| 600 |
proxy quiet random rate reopen resync right scale \ |
626 |
mix mono proxy quiet random rate reopen resync \ |
| 601 |
shuffle single0 single1 skip speaker stdout stereo \ |
627 |
right scale shuffle single0 single1 skip \ |
| 602 |
test verbose wav)/' |
628 |
speaker stdout stereo test verbose wav)/' |
| 603 |
complete mysqladmin 'n/*/(create drop extended-status flush-hosts \ |
629 |
complete mysqladmin 'n/*/(create drop extended-status flush-hosts \ |
| 604 |
flush-logs flush-status flush-tables flush-privileges \ |
630 |
flush-logs flush-status flush-tables \ |
| 605 |
kill password ping processlist reload refresh \ |
631 |
flush-privileges kill password ping \ |
| 606 |
shutdown status variables version)/' |
632 |
processlist reload refresh shutdown status \ |
| 607 |
complete mutt "c@-f=@F:${HOME}/Mail/@" \ |
633 |
variables version)/' |
| 608 |
n/-a/f/ \ |
|
|
| 609 |
n/-F/f/ n/-H/f/ \ |
| 610 |
n/-s/x:'<subject line>'/ \ |
| 611 |
n/-e/x:'<command>'/ \ |
| 612 |
n@-b@'`cat "${HOME}/.muttrc-alias" | awk '"'"'{print $2 }'"'"\`@ \ |
| 613 |
n@-c@'`cat "${HOME}/.muttrc-alias" | awk '"'"'{print $2 }'"'"\`@ \ |
| 614 |
n@*@'`cat "${HOME}/.muttrc-alias" | awk '"'"'{print $2 }'"'"\`@ |
| 615 |
complete ndc 'n/*/(status dumpdb reload stats trace notrace \ |
| 616 |
querylog start stop restart )/' |
| 617 |
if ($?traditional_complete) then |
| 618 |
complete nm \ |
| 619 |
'c/--/(debug-syms defined-only demangle dynamic \ |
| 620 |
extern-only format= help line-numbers no-demangle \ |
| 621 |
no-sort numeric-sort portability print-armap \ |
| 622 |
print-file-name reverse-sort size-sort undefined-only \ |
| 623 |
version)/' 'p/*/f:^*.{h,C,c,cc}/' |
| 624 |
else |
| 625 |
complete nm \ |
| 626 |
'c/--radix=/x:<radix: _o_ctal _d_ecimal he_x_adecimal>/' \ |
| 627 |
'c/--target=/x:<bfdname>/' \ |
| 628 |
'c/--format=/(bsd sysv posix)/n/' \ |
| 629 |
'c/--/(debugsyms extern-only demangle dynamic print-armap \ |
| 630 |
print-file-name numeric-sort no-sort reverse-sort \ |
| 631 |
size-sort undefined-only portability target= radix= \ |
| 632 |
format= defined-only\ line-numbers no-demangle version \ |
| 633 |
help)//' \ |
| 634 |
'n/*/f:^*.{h,c,cc,s,S}/' |
| 635 |
endif |
| 636 |
complete nmap 'n@-e@`ifconfig -l`@' 'p/*/$hostnames/' |
| 637 |
complete perldoc 'n@*@`\ls -1 /usr/libdata/perl/5.*/pod | sed s%\\.pod.\*\$%%`@' |
| 638 |
complete postfix 'n/*/(start stop reload abort flush check)/' |
| 639 |
complete postmap 'n/1/(hash: regexp:)/' 'c/hash:/f/' 'c/regexp:/f/' |
| 640 |
complete rcsdiff 'p@1@`\ls -1a RCS | sed -e "s/\(.*\),v/\1/"`@' |
| 641 |
complete X 'c/-/(I a ac allowMouseOpenFail allowNonLocalModInDev \ |
| 642 |
allowNonLocalXvidtune ar1 ar2 audit auth bestRefresh \ |
| 643 |
bgamma bpp broadcast bs c cc class co core deferglyphs \ |
| 644 |
disableModInDev disableVidMode displayID dpi dpms f fc \ |
| 645 |
flipPixels fn fp gamma ggamma help indirect kb keeptty \ |
| 646 |
ld lf logo ls nolisten string noloadxkb nolock nopn \ |
| 647 |
once p pn port probeonly query quiet r rgamma s \ |
| 648 |
showconfig sp su t terminate to tst v verbose version \ |
| 649 |
weight wm x xkbdb xkbmap)/' |
| 650 |
complete users 'c/--/(help version)/' 'p/1/x:"<accounting_file>"/' |
| 651 |
complete vidcontrol 'p/1/(132x25 132x30 132x43 132x50 132x60 40x25 80x25 \ |
| 652 |
80x30 80x43 80x50 80x60 EGA_80x25 EGA_80x43 \ |
| 653 |
VESA_132x25 VESA_132x30 VESA_132x43 VESA_132x50 \ |
| 654 |
VESA_132x60 VESA_800x600 VGA_320x200 VGA_40x25 \ |
| 655 |
VGA_80x25 VGA_80x30 VGA_80x50 VGA_80x60)/' |
| 656 |
complete vim 'n/*/f:^*.[oa]/' |
| 657 |
complete where 'n/*/c/' |
| 658 |
complete which 'n/*/c/' |
| 659 |
complete wmsetbg 'c/-/(display D S a b c d e m p s t u w)/' \ |
| 660 |
'c/--/(back-color center colors dither help match \ |
| 661 |
maxscale parse scale smooth tile update-domain \ |
| 662 |
update-wmaker version workspace)/' |
| 663 |
complete xdb 'p/1/c/' |
| 664 |
complete xdvi 'c/-/(allowshell debug display expert gamma hushchars \ |
| 665 |
hushchecksums hushspecials install interpreter keep \ |
| 666 |
margins nogrey noinstall nomakepk noscan paper safer \ |
| 667 |
shrinkbuttonn thorough topmargin underlink version)/' \ |
| 668 |
'n/-paper/(a4 a4r a5 a5r)/' 'p/*/f:*.dvi/' |
| 669 |
complete xlock 'c/-/(allowaccess allowroot debug description \ |
| 670 |
echokeys enablesaver grabmouse grabserver hide inroot \ |
| 671 |
install inwindow mono mousemotion nolock remote \ |
| 672 |
resetsaver sound timeelapsed use3d usefirst verbose \ |
| 673 |
wireframe background batchcount bg bitmap both3d \ |
| 674 |
count cycles delay delta3d display dpmsoff \ |
| 675 |
dpmsstandby dpmssuspend endCmd erasedelay erasemode \ |
| 676 |
erasetime fg font foreground geometry help \ |
| 677 |
icongeometry info invalid left3d lockdelay logoutCmd \ |
| 678 |
mailCmd mailIcon message messagefile messagefont \ |
| 679 |
messagesfile mode name ncolors nice nomailIcon none3d \ |
| 680 |
parent password planfont program resources right3d \ |
| 681 |
saturation size startCmd timeout username validate \ |
| 682 |
version visual)/' 'n/-mode/(ant atlantis ball bat \ |
| 683 |
blot bouboule bounce braid bubble bubble3d bug cage \ |
| 684 |
cartoon clock coral crystal daisy dclock decay deco \ |
| 685 |
demon dilemma discrete drift eyes fadeplot flag flame \ |
| 686 |
flow forest galaxy gears goop grav helix hop hyper \ |
| 687 |
ico ifs image invert julia kaleid kumppa lament laser \ |
| 688 |
life life1d life3d lightning lisa lissie loop lyapunov \ |
| 689 |
mandelbrot marquee matrix maze moebius morph3d \ |
| 690 |
mountain munch nose pacman penrose petal pipes puzzle \ |
| 691 |
pyro qix roll rotor rubik shape sierpinski slip sphere \ |
| 692 |
spiral spline sproingies stairs star starfish strange \ |
| 693 |
superquadrics swarm swirl tetris thornbird triangle \ |
| 694 |
tube turtle vines voters wator wire world worm xjack \ |
| 695 |
blank bomb random)/' |
| 696 |
complete xfig 'c/-/(display)/' 'p/*/f:*.fig/' |
| 697 |
complete wget c/--/"(accept= append-output= background cache= \ |
| 698 |
continue convert-links cut-dirs= debug \ |
| 699 |
delete-after directory-prefix= domains= \ |
| 700 |
dont-remove-listing dot-style= exclude-directories= \ |
| 701 |
exclude-domains= execute= follow-ftp \ |
| 702 |
force-directories force-html glob= header= help \ |
| 703 |
http-passwd= http-user= ignore-length \ |
| 704 |
include-directories= input-file= level= mirror \ |
| 705 |
no-clobber no-directories no-host-directories \ |
| 706 |
no-host-lookup no-parent non-verbose \ |
| 707 |
output-document= output-file= passive-ftp \ |
| 708 |
proxy-passwd= proxy-user= proxy= quiet quota= \ |
| 709 |
recursive reject= relative retr-symlinks save-headers \ |
| 710 |
server-response span-hosts spider timeout= \ |
| 711 |
timestamping tries= user-agent= verbose version wait=)"/ |
| 712 |
|
634 |
|
| 713 |
# these from Tom Warzeka <tom@waz.cc> |
635 |
complete mutt \ |
|
|
636 |
"c@-f=@F:${HOME}/Mail/@" \ |
| 637 |
n/-a/f/ \ |
| 638 |
n/-F/f/ \ |
| 639 |
n/-H/f/ \ |
| 640 |
n/-s/x:'<subject line>'/ \ |
| 641 |
n/-e/x:'<command>'/ \ |
| 642 |
n@-b@'`cat "${HOME}/.muttrc-alias" | awk '"'"'{print $2 }'"'"\`@ \ |
| 643 |
n@-c@'`cat "${HOME}/.muttrc-alias" | awk '"'"'{print $2 }'"'"\`@ \ |
| 644 |
n@*@'`cat "${HOME}/.muttrc-alias" | awk '"'"'{print $2 }'"'"\`@ |
| 714 |
|
645 |
|
| 715 |
# this one works but is slow and doesn't descend into subdirectories |
646 |
complete ndc 'n/*/(status dumpdb reload stats trace notrace \ |
| 716 |
# complete cd C@[./\$~]*@d@ \ |
647 |
querylog start stop restart )/' |
| 717 |
# p@1@'`\ls -1F . $cdpath | grep /\$ | sort -u`'@ n@*@n@ |
|
|
| 718 |
|
648 |
|
| 719 |
if ( -r /etc/shells ) then |
649 |
complete nm \ |
| 720 |
complete setenv p@1@e@ n@DISPLAY@\$hosts@: n@SHELL@'`cat /etc/shells`'@ |
650 |
'c/--radix=/x:<radix: _o_ctal _d_ecimal he_x_adecimal>/' \ |
| 721 |
else |
651 |
'c/--target=/x:<bfdname>/' \ |
| 722 |
complete setenv p@1@e@ n@DISPLAY@\$hosts@: |
652 |
'c/--format=/(bsd sysv posix)/n/' \ |
| 723 |
endif |
653 |
'c/--/(debugsyms extern-only demangle dynamic print-armap \ |
| 724 |
complete unsetenv n/*/e/ |
654 |
print-file-name numeric-sort no-sort reverse-sort \ |
|
|
655 |
size-sort undefined-only portability target= radix= \ |
| 656 |
format= defined-only\ line-numbers no-demangle version \ |
| 657 |
help)//' \ |
| 658 |
'n/*/f:^*.{h,c,cc,s,S}/' |
| 725 |
|
659 |
|
| 726 |
set _maildir = /var/mail |
660 |
complete nmap 'n@-e@`ifconfig -l`@' 'p/*/$hostnames/' |
| 727 |
if (-r "$HOME/.mailrc") then |
661 |
complete perldoc 'n@*@`\ls -1 /usr/libdata/perl/5.*/pod | sed s%\\.pod.\*\$%%`@' |
| 728 |
complete mail c/-/"(e i f n s u v)"/ c/*@/\$hosts/ \ |
662 |
complete postfix 'n/*/(start stop reload abort flush check)/' |
| 729 |
"c@+@F:$HOME/Mail@" C@[./\$~]@f@ n/-s/x:'<subject>'/ \ |
663 |
complete postmap 'n/1/(hash: regexp:)/' 'c/hash:/f/' 'c/regexp:/f/' |
| 730 |
n@-u@T:$_maildir@ n/-f/f/ \ |
664 |
complete rcsdiff 'p@1@`\ls -1a RCS | sed -e "s/\(.*\),v/\1/"`@' |
| 731 |
n@*@'`sed -n s/alias//p "$HOME/.mailrc" | \ |
665 |
complete X 'c/-/(I a ac allowMouseOpenFail allowNonLocalModInDev \ |
| 732 |
tr -s " " " " | cut -f 2`'@ |
666 |
allowNonLocalXvidtune ar1 ar2 audit auth bestRefresh \ |
|
|
667 |
bgamma bpp broadcast bs c cc class co core deferglyphs \ |
| 668 |
disableModInDev disableVidMode displayID dpi dpms f fc \ |
| 669 |
flipPixels fn fp gamma ggamma help indirect kb keeptty \ |
| 670 |
ld lf logo ls nolisten string noloadxkb nolock nopn \ |
| 671 |
once p pn port probeonly query quiet r rgamma s \ |
| 672 |
showconfig sp su t terminate to tst v verbose version \ |
| 673 |
weight wm x xkbdb xkbmap)/' |
| 674 |
complete users 'c/--/(help version)/' 'p/1/x:"<accounting_file>"/' |
| 675 |
complete vidcontrol 'p/1/(132x25 132x30 132x43 132x50 132x60 40x25 80x25 \ |
| 676 |
80x30 80x43 80x50 80x60 EGA_80x25 EGA_80x43 \ |
| 677 |
VESA_132x25 VESA_132x30 VESA_132x43 VESA_132x50 \ |
| 678 |
VESA_132x60 VESA_800x600 VGA_320x200 VGA_40x25 \ |
| 679 |
VGA_80x25 VGA_80x30 VGA_80x50 VGA_80x60)/' |
| 680 |
complete vim 'n/*/f:^*.[oa]/' |
| 681 |
complete where 'n/*/c/' |
| 682 |
complete which 'n/*/c/' |
| 683 |
complete wmsetbg 'c/-/(display D S a b c d e m p s t u w)/' \ |
| 684 |
'c/--/(back-color center colors dither help match \ |
| 685 |
maxscale parse scale smooth tile update-domain \ |
| 686 |
update-wmaker version workspace)/' |
| 687 |
complete xdb 'p/1/c/' |
| 688 |
complete xdvi 'c/-/(allowshell debug display expert gamma hushchars \ |
| 689 |
hushchecksums hushspecials install interpreter keep \ |
| 690 |
margins nogrey noinstall nomakepk noscan paper safer \ |
| 691 |
shrinkbuttonn thorough topmargin underlink version)/' \ |
| 692 |
'n/-paper/(a4 a4r a5 a5r)/' 'p/*/f:*.dvi/' |
| 693 |
complete xlock 'c/-/(allowaccess allowroot debug description \ |
| 694 |
echokeys enablesaver grabmouse grabserver hide inroot \ |
| 695 |
install inwindow mono mousemotion nolock remote \ |
| 696 |
resetsaver sound timeelapsed use3d usefirst verbose \ |
| 697 |
wireframe background batchcount bg bitmap both3d \ |
| 698 |
count cycles delay delta3d display dpmsoff \ |
| 699 |
dpmsstandby dpmssuspend endCmd erasedelay erasemode \ |
| 700 |
erasetime fg font foreground geometry help \ |
| 701 |
icongeometry info invalid left3d lockdelay logoutCmd \ |
| 702 |
mailCmd mailIcon message messagefile messagefont \ |
| 703 |
messagesfile mode name ncolors nice nomailIcon none3d \ |
| 704 |
parent password planfont program resources right3d \ |
| 705 |
saturation size startCmd timeout username validate \ |
| 706 |
version visual)/' 'n/-mode/(ant atlantis ball bat \ |
| 707 |
blot bouboule bounce braid bubble bubble3d bug cage \ |
| 708 |
cartoon clock coral crystal daisy dclock decay deco \ |
| 709 |
demon dilemma discrete drift eyes fadeplot flag flame \ |
| 710 |
flow forest galaxy gears goop grav helix hop hyper \ |
| 711 |
ico ifs image invert julia kaleid kumppa lament laser \ |
| 712 |
life life1d life3d lightning lisa lissie loop lyapunov \ |
| 713 |
mandelbrot marquee matrix maze moebius morph3d \ |
| 714 |
mountain munch nose pacman penrose petal pipes puzzle \ |
| 715 |
pyro qix roll rotor rubik shape sierpinski slip sphere \ |
| 716 |
spiral spline sproingies stairs star starfish strange \ |
| 717 |
superquadrics swarm swirl tetris thornbird triangle \ |
| 718 |
tube turtle vines voters wator wire world worm xjack \ |
| 719 |
blank bomb random)/' |
| 720 |
complete xfig 'c/-/(display)/' 'p/*/f:*.fig/' |
| 721 |
complete wget c/--/"(accept= append-output= background cache= \ |
| 722 |
continue convert-links cut-dirs= debug \ |
| 723 |
delete-after directory-prefix= domains= \ |
| 724 |
dont-remove-listing dot-style= exclude-directories= \ |
| 725 |
exclude-domains= execute= follow-ftp \ |
| 726 |
force-directories force-html glob= header= help \ |
| 727 |
http-passwd= http-user= ignore-length \ |
| 728 |
include-directories= input-file= level= mirror \ |
| 729 |
no-clobber no-directories no-host-directories \ |
| 730 |
no-host-lookup no-parent non-verbose \ |
| 731 |
output-document= output-file= passive-ftp \ |
| 732 |
proxy-passwd= proxy-user= proxy= quiet quota= \ |
| 733 |
recursive reject= relative retr-symlinks save-headers \ |
| 734 |
server-response span-hosts spider timeout= \ |
| 735 |
timestamping tries= user-agent= verbose version wait=)"/ |
| 736 |
|
| 737 |
# these from Tom Warzeka <tom@waz.cc> |
| 738 |
|
| 739 |
# this one works but is slow and doesn't descend into subdirectories |
| 740 |
# complete cd C@[./\$~]*@d@ \ |
| 741 |
# p@1@'`\ls -1F . $cdpath | grep /\$ | sort -u`'@ n@*@n@ |
| 742 |
|
| 743 |
if ( -r /etc/shells ) then |
| 744 |
complete setenv p@1@e@ n@DISPLAY@\$hosts@: n@SHELL@'`cat /etc/shells`'@ |
| 745 |
else |
| 746 |
complete setenv p@1@e@ n@DISPLAY@\$hosts@: |
| 747 |
endif |
| 748 |
complete unsetenv n/*/e/ |
| 749 |
|
| 750 |
set _maildir = /var/mail |
| 751 |
if (-r "$HOME/.mailrc") then |
| 752 |
complete mail c/-/"(e i f n s u v)"/ c/*@/\$hosts/ \ |
| 753 |
"c@+@F:$HOME/Mail@" C@[./\$~]@f@ n/-s/x:'<subject>'/ \ |
| 754 |
n@-u@T:$_maildir@ n/-f/f/ \ |
| 755 |
n@*@'`sed -n s/alias//p "$HOME/.mailrc" | \ |
| 756 |
tr -s " " " " | cut -f 2`'@ |
| 757 |
else |
| 758 |
complete mail c/-/"(e i f n s u v)"/ c/*@/\$hosts/ \ |
| 759 |
"c@+@F:$HOME/Mail@" C@[./\$~]@f@ n/-s/x:'<subject>'/ \ |
| 760 |
n@-u@T:$_maildir@ n/-f/f/ n/*/u/ |
| 761 |
endif |
| 762 |
unset _maildir |
| 763 |
|
| 764 |
if (! $?MANPATH) then |
| 765 |
if (-r /usr/share/man) then |
| 766 |
setenv MANPATH /usr/share/man: |
| 733 |
else |
767 |
else |
| 734 |
complete mail c/-/"(e i f n s u v)"/ c/*@/\$hosts/ \ |
768 |
setenv MANPATH /usr/man: |
| 735 |
"c@+@F:$HOME/Mail@" C@[./\$~]@f@ n/-s/x:'<subject>'/ \ |
|
|
| 736 |
n@-u@T:$_maildir@ n/-f/f/ n/*/u/ |
| 737 |
endif |
769 |
endif |
| 738 |
unset _maildir |
770 |
endif |
| 739 |
|
771 |
|
| 740 |
if (! $?MANPATH) then |
772 |
if ($?traditional_complete) then |
| 741 |
if (-r /usr/share/man) then |
773 |
# use of $MANPATH from Dan Nicolaescu <dann@ics.uci.edu> |
| 742 |
setenv MANPATH /usr/share/man: |
774 |
# use of 'find' adapted from Lubomir Host <host8@kepler.fmph.uniba.sk> |
| 743 |
else |
775 |
complete man \ |
| 744 |
setenv MANPATH /usr/man: |
776 |
'n@1@`set q = "$MANPATH:as%:%/man1 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.1.\*\$%%`@'\ |
| 745 |
endif |
777 |
'n@2@`set q = "$MANPATH:as%:%/man2 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.2.\*\$%%`@'\ |
| 746 |
endif |
778 |
'n@3@`set q = "$MANPATH:as%:%/man3 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.3.\*\$%%`@'\ |
| 747 |
|
779 |
'n@4@`set q = "$MANPATH:as%:%/man4 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.4.\*\$%%`@'\ |
| 748 |
if ($?traditional_complete) then |
780 |
'n@5@`set q = "$MANPATH:as%:%/man5 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.5.\*\$%%`@'\ |
| 749 |
# use of $MANPATH from Dan Nicolaescu <dann@ics.uci.edu> |
781 |
'n@6@`set q = "$MANPATH:as%:%/man6 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.6.\*\$%%`@'\ |
| 750 |
# use of 'find' adapted from Lubomir Host <host8@kepler.fmph.uniba.sk> |
782 |
'n@7@`set q = "$MANPATH:as%:%/man7 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.7.\*\$%%`@'\ |
| 751 |
complete man \ |
783 |
'n@8@`set q = "$MANPATH:as%:%/man8 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.8.\*\$%%`@'\ |
| 752 |
'n@1@`set q = "$MANPATH:as%:%/man1 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.1.\*\$%%`@'\ |
784 |
'n@9@`set q = "$MANPATH:as%:%/man9 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.9.\*\$%%`@'\ |
| 753 |
'n@2@`set q = "$MANPATH:as%:%/man2 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.2.\*\$%%`@'\ |
785 |
'n@0@`set q = "$MANPATH:as%:%/man0 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.0.\*\$%%`@'\ |
| 754 |
'n@3@`set q = "$MANPATH:as%:%/man3 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.3.\*\$%%`@'\ |
786 |
'n@n@`set q = "$MANPATH:as%:%/mann %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.n.\*\$%%`@'\ |
| 755 |
'n@4@`set q = "$MANPATH:as%:%/man4 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.4.\*\$%%`@'\ |
787 |
'n@o@`set q = "$MANPATH:as%:%/mano %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.o.\*\$%%`@'\ |
| 756 |
'n@5@`set q = "$MANPATH:as%:%/man5 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.5.\*\$%%`@'\ |
788 |
'n@l@`set q = "$MANPATH:as%:%/manl %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.l.\*\$%%`@'\ |
| 757 |
'n@6@`set q = "$MANPATH:as%:%/man6 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.6.\*\$%%`@'\ |
789 |
'n@p@`set q = "$MANPATH:as%:%/manp %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.p.\*\$%%`@'\ |
| 758 |
'n@7@`set q = "$MANPATH:as%:%/man7 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.7.\*\$%%`@'\ |
790 |
c@-@"(- f k M P s S t)"@ n@-f@c@ n@-k@x:'<keyword>'@ n@-[MP]@d@ \ |
| 759 |
'n@8@`set q = "$MANPATH:as%:%/man8 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.8.\*\$%%`@'\ |
791 |
'N@-[MP]@`\ls -1 $:-1/man? |& sed -n s%\\..\\+\$%%p`@' \ |
| 760 |
'n@9@`set q = "$MANPATH:as%:%/man9 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.9.\*\$%%`@'\ |
792 |
'n@-[sS]@`\ls -1 $MANPATH:as%:% % |& sed -n s%^man%%p | sort -u`@'\ |
| 761 |
'n@0@`set q = "$MANPATH:as%:%/man0 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.0.\*\$%%`@'\ |
793 |
'n@*@`find $MANPATH:as%:% % \( -type f -o -type l \) -printf "%f " |& sed -e "s%find: .*: No such file or directory%%" -e "s%\([^\.]\+\)\.\([^ ]*\) %\1 %g"`@' |
| 762 |
'n@n@`set q = "$MANPATH:as%:%/mann %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.n.\*\$%%`@'\ |
794 |
#n@*@c@ # old way -- commands only |
| 763 |
'n@o@`set q = "$MANPATH:as%:%/mano %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.o.\*\$%%`@'\ |
795 |
else |
| 764 |
'n@l@`set q = "$MANPATH:as%:%/manl %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.l.\*\$%%`@'\ |
796 |
complete man n@1@'`\ls -1 /usr/man/man1 | sed s%\\.1.\*\$%%`'@ \ |
| 765 |
'n@p@`set q = "$MANPATH:as%:%/manp %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.p.\*\$%%`@'\ |
797 |
n@2@'`\ls -1 /usr/man/man2 | sed s%\\.2.\*\$%%`'@ \ |
| 766 |
c@-@"(- f k M P s S t)"@ n@-f@c@ n@-k@x:'<keyword>'@ n@-[MP]@d@ \ |
798 |
n@3@'`\ls -1 /usr/man/man3 | sed s%\\.3.\*\$%%`'@ \ |
| 767 |
'N@-[MP]@`\ls -1 $:-1/man? |& sed -n s%\\..\\+\$%%p`@' \ |
799 |
n@4@'`\ls -1 /usr/man/man4 | sed s%\\.4.\*\$%%`'@ \ |
| 768 |
'n@-[sS]@`\ls -1 $MANPATH:as%:% % |& sed -n s%^man%%p | sort -u`@'\ |
800 |
n@5@'`\ls -1 /usr/man/man5 | sed s%\\.5.\*\$%%`'@ \ |
| 769 |
'n@*@`find $MANPATH:as%:% % \( -type f -o -type l \) -printf "%f " |& sed -e "s%find: .*: No such file or directory%%" -e "s%\([^\.]\+\)\.\([^ ]*\) %\1 %g"`@' |
801 |
n@6@'`\ls -1 /usr/man/man6 | sed s%\\.6.\*\$%%`'@ \ |
| 770 |
#n@*@c@ # old way -- commands only |
802 |
n@7@'`\ls -1 /usr/man/man7 | sed s%\\.7.\*\$%%`'@ \ |
| 771 |
else |
803 |
n@8@'`\ls -1 /usr/man/man8 | sed s%\\.8.\*\$%%`'@ \ |
| 772 |
complete man n@1@'`\ls -1 /usr/man/man1 | sed s%\\.1.\*\$%%`'@ \ |
804 |
n@9@'`[ -r /usr/man/man9 ] && \ls -1 /usr/man/man9 | sed s%\\.9.\*\$%%`'@ \ |
| 773 |
n@2@'`\ls -1 /usr/man/man2 | sed s%\\.2.\*\$%%`'@ \ |
805 |
n@0@'`[ -r /usr/man/man0 ] && \ls -1 /usr/man/man0 | sed s%\\.0.\*\$%%`'@ \ |
| 774 |
n@3@'`\ls -1 /usr/man/man3 | sed s%\\.3.\*\$%%`'@ \ |
806 |
n@new@'`[ -r /usr/man/mann ] && \ls -1 /usr/man/mann | sed s%\\.n.\*\$%%`'@ \ |
| 775 |
n@4@'`\ls -1 /usr/man/man4 | sed s%\\.4.\*\$%%`'@ \ |
807 |
n@old@'`[ -r /usr/man/mano ] && \ls -1 /usr/man/mano | sed s%\\.o.\*\$%%`'@ \ |
| 776 |
n@5@'`\ls -1 /usr/man/man5 | sed s%\\.5.\*\$%%`'@ \ |
|
|
| 777 |
n@6@'`\ls -1 /usr/man/man6 | sed s%\\.6.\*\$%%`'@ \ |
| 778 |
n@7@'`\ls -1 /usr/man/man7 | sed s%\\.7.\*\$%%`'@ \ |
| 779 |
n@8@'`\ls -1 /usr/man/man8 | sed s%\\.8.\*\$%%`'@ \ |
| 780 |
n@9@'`[ -r /usr/man/man9 ] && \ls -1 /usr/man/man9 | sed s%\\.9.\*\$%%`'@ \ |
| 781 |
n@0@'`[ -r /usr/man/man0 ] && \ls -1 /usr/man/man0 | sed s%\\.0.\*\$%%`'@ \ |
| 782 |
n@new@'`[ -r /usr/man/mann ] && \ls -1 /usr/man/mann | sed s%\\.n.\*\$%%`'@ \ |
| 783 |
n@old@'`[ -r /usr/man/mano ] && \ls -1 /usr/man/mano | sed s%\\.o.\*\$%%`'@ \ |
| 784 |
n@local@'`[ -r /usr/man/manl ] && \ls -1 /usr/man/manl | sed s%\\.l.\*\$%%`'@ \ |
808 |
n@local@'`[ -r /usr/man/manl ] && \ls -1 /usr/man/manl | sed s%\\.l.\*\$%%`'@ \ |
| 785 |
n@public@'`[ -r /usr/man/manp ]&& \ls -1 /usr/man/manp | sed s%\\.p.\*\$%%`'@ \ |
809 |
n@public@'`[ -r /usr/man/manp ]&& \ls -1 /usr/man/manp | sed s%\\.p.\*\$%%`'@ \ |
| 786 |
c/-/"(- f k P s t)"/ n/-f/c/ n/-k/x:'<keyword>'/ n/-P/d/ \ |
810 |
c/-/"(- f k P s t)"/ n/-f/c/ n/-k/x:'<keyword>'/ n/-P/d/ \ |
| 787 |
N@-P@'`\ls -1 $:-1/man? | sed s%\\..\*\$%%`'@ n/*/c/ |
811 |
N@-P@'`\ls -1 $:-1/man? | sed s%\\..\*\$%%`'@ n/*/c/ |
| 788 |
endif |
812 |
endif |
| 789 |
|
813 |
|
| 790 |
complete ps c/-t/x:'<tty>'/ c/-/"(a c C e g k l S t u v w x)"/ \ |
814 |
complete ps c/-t/x:'<tty>'/ c/-/"(a c C e g k l S t u v w x)"/ \ |
| 791 |
n/-k/x:'<kernel>'/ N/-k/x:'<core_file>'/ n/*/x:'<PID>'/ |
815 |
n/-k/x:'<kernel>'/ N/-k/x:'<core_file>'/ n/*/x:'<PID>'/ |
| 792 |
complete compress c/-/"(c f v b)"/ n/-b/x:'<max_bits>'/ n/*/f:^*.Z/ |
816 |
complete compress c/-/"(c f v b)"/ n/-b/x:'<max_bits>'/ n/*/f:^*.Z/ |
| 793 |
complete uncompress c/-/"(c f v)"/ n/*/f:*.Z/ |
817 |
complete uncompress c/-/"(c f v)"/ n/*/f:*.Z/ |
| 794 |
|
818 |
|
| 795 |
complete uuencode p/1/f/ p/2/x:'<decode_pathname>'/ n/*/n/ |
819 |
complete uuencode p/1/f/ p/2/x:'<decode_pathname>'/ n/*/n/ |
| 796 |
complete uudecode c/-/"(f)"/ n/-f/f:*.{uu,UU}/ p/1/f:*.{uu,UU}/ n/*/n/ |
820 |
complete uudecode c/-/"(f)"/ n/-f/f:*.{uu,UU}/ p/1/f:*.{uu,UU}/ n/*/n/ |
| 797 |
|
821 |
|
| 798 |
complete xhost c/[+-]/\$hosts/ n/*/\$hosts/ |
822 |
complete xhost c/[+-]/\$hosts/ n/*/\$hosts/ |
| 799 |
complete xpdf c/-/"(z g remote raise quit cmap rgb papercolor \ |
823 |
complete xpdf c/-/"(z g remote raise quit cmap rgb papercolor \ |
| 800 |
eucjp t1lib freetype ps paperw paperh level1 \ |
824 |
eucjp t1lib freetype ps paperw paperh level1 \ |
| 801 |
upw fullscreen cmd q v h help)"/ \ |
825 |
upw fullscreen cmd q v h help)"/ \ |
| 802 |
n/-z/x:'<zoom (-5 .. +5) or "page" or "width">'/ \ |
826 |
n/-z/x:'<zoom (-5 .. +5) or "page" or "width">'/ \ |
| 803 |
n/-g/x:'<geometry>'/ n/-remote/x:'<name>'/ \ |
827 |
n/-g/x:'<geometry>'/ n/-remote/x:'<name>'/ \ |
| 804 |
n/-rgb/x:'<number>'/ n/-papercolor/x:'<color>'/ \ |
828 |
n/-rgb/x:'<number>'/ n/-papercolor/x:'<color>'/ \ |
| 805 |
n/-{t1lib,freetype}/x:'<font_type>'/ \ |
829 |
n/-{t1lib,freetype}/x:'<font_type>'/ \ |
| 806 |
n/-ps/x:'<PS_file>'/ n/-paperw/x:'<width>'/ \ |
830 |
n/-ps/x:'<PS_file>'/ n/-paperw/x:'<width>'/ \ |
| 807 |
n/-paperh/x:'<height>'/ n/-upw/x:'<password>'/ \ |
831 |
n/-paperh/x:'<height>'/ n/-upw/x:'<password>'/ \ |
| 808 |
n/-/f:*.{pdf,PDF}/ \ |
832 |
n/-/f:*.{pdf,PDF}/ \ |
| 809 |
N/-{z,g,remote,rgb,papercolor,t1lib,freetype,ps,paperw,paperh,upw}/f:*.{pdf,PDF}/ \ |
833 |
N/-{z,g,remote,rgb,papercolor,t1lib,freetype,ps,paperw,paperh,upw}/f:*.{pdf,PDF}/ \ |
| 810 |
N/-/x:'<page>'/ p/1/f:*.{pdf,PDF}/ p/2/x:'<page>'/ |
834 |
N/-/x:'<page>'/ p/1/f:*.{pdf,PDF}/ p/2/x:'<page>'/ |
| 811 |
|
835 |
|
| 812 |
complete tcsh c/-D*=/'x:<value>'/ c/-D/'x:<name>'/ \ |
836 |
complete tcsh c/-D*=/'x:<value>'/ c/-D/'x:<name>'/ \ |
| 813 |
c/-/"(b c d D e f F i l m n q s t v V x X -version)"/ \ |
837 |
c/-/"(b c d D e f F i l m n q s t v V x X -version)"/ \ |
| 814 |
n/-c/c/ n/{-l,--version}/n/ n/*/'f:*.{,t}csh'/ |
838 |
n/-c/c/ n/{-l,--version}/n/ n/*/'f:*.{,t}csh'/ |
| 815 |
|
839 |
|
| 816 |
complete rpm c/--/"(query verify nodeps nofiles nomd5 noscripts \ |
840 |
complete rpm c/--/"(query verify nodeps nofiles nomd5 noscripts \ |
| 817 |
nogpg nopgp install upgrade freshen erase allmatches \ |
841 |
nogpg nopgp install upgrade freshen erase allmatches \ |
| 818 |
notriggers repackage test rebuild recompile initdb \ |
842 |
notriggers repackage test rebuild recompile initdb \ |
| 819 |
rebuilddb addsign resign querytags showrc setperms \ |
843 |
rebuilddb addsign resign querytags showrc setperms \ |
| 820 |
setugids all file group package querybynumber qf \ |
844 |
setugids all file group package querybynumber qf \ |
| 821 |
triggeredby whatprovides whatrequires changelog \ |
845 |
triggeredby whatprovides whatrequires changelog \ |
| 822 |
configfiles docfiles dump filesbypkg info last list \ |
846 |
configfiles docfiles dump filesbypkg info last list \ |
| 823 |
provides queryformat requires scripts state triggers \ |
847 |
provides queryformat requires scripts state triggers \ |
| 824 |
triggerscripts allfiles badreloc excludepath checksig \ |
848 |
triggerscripts allfiles badreloc excludepath checksig \ |
| 825 |
excludedocs force hash ignoresize ignorearch ignoreos \ |
849 |
excludedocs force hash ignoresize ignorearch ignoreos \ |
| 826 |
includedocs justdb noorder oldpackage percent prefix \ |
850 |
includedocs justdb noorder oldpackage percent prefix \ |
| 827 |
relocate replace-files replacepkgs buildroot clean \ |
851 |
relocate replace-files replacepkgs buildroot clean \ |
| 828 |
nobuild rmsource rmspec short-circuit sign target \ |
852 |
nobuild rmsource rmspec short-circuit sign target \ |
| 829 |
help version quiet rcfile pipe dbpath root specfile)"/\ |
853 |
help version quiet rcfile pipe dbpath root specfile)"/\ |
| 830 |
c/-/"(q V K i U F e ba bb bp bc bi bl bs ta tb tp tc \ |
854 |
c/-/"(q V K i U F e ba bb bp bc bi bl bs ta tb tp tc \ |
| 831 |
ti tl ts a f g p c d l R s h ? v vv -)"/ \ |
855 |
ti tl ts a f g p c d l R s h ? v vv -)"/ \ |
| 832 |
n/{-f,--file}/f/ n/{-g,--group}/g/ n/--pipe/c/ n/--dbpath/d/ \ |
856 |
n/{-f,--file}/f/ n/{-g,--group}/g/ n/--pipe/c/ n/--dbpath/d/ \ |
| 833 |
n/--querybynumber/x:'<number>'/ n/--triggeredby/x:'<package>'/\ |
857 |
n/--querybynumber/x:'<number>'/ n/--triggeredby/x:'<package>'/\ |
| 834 |
n/--what{provides,requires}/x:'<capability>'/ n/--root/d/ \ |
858 |
n/--what{provides,requires}/x:'<capability>'/ n/--root/d/ \ |
| 835 |
n/--{qf,queryformat}/x:'<format>'/ n/--buildroot/d/ \ |
859 |
n/--{qf,queryformat}/x:'<format>'/ n/--buildroot/d/ \ |
| 836 |
n/--excludepath/x:'<oldpath>'/ n/--prefix/x:'<newpath>'/ \ |
860 |
n/--excludepath/x:'<oldpath>'/ n/--prefix/x:'<newpath>'/ \ |
| 837 |
n/--relocate/x:'<oldpath=newpath>'/ n/--target/x:'<platform>'/\ |
861 |
n/--relocate/x:'<oldpath=newpath>'/ n/--target/x:'<platform>'/\ |
| 838 |
n/--rcfile/x:'<filelist>'/ n/--specfile/x:'<specfile>'/ \ |
862 |
n/--rcfile/x:'<filelist>'/ n/--specfile/x:'<specfile>'/ \ |
| 839 |
n/{-[iUFep],--{install,upgrade,freshen,erase,package}}/f:*.rpm/ |
863 |
n/{-[iUFep],--{install,upgrade,freshen,erase,package}}/f:*.rpm/ |
| 840 |
|
864 |
|
| 841 |
# these conform to the latest GNU versions available at press time ... |
865 |
# these conform to the latest GNU versions available at press time ... |
| 842 |
# updates by John Gotts <jgotts@engin.umich.edu> |
866 |
# updates by John Gotts <jgotts@engin.umich.edu> |
| 843 |
if (-X emacs) then |
867 |
if (-X emacs) then |
| 844 |
# TW note: if your version of GNU Emacs supports the "--version" option, |
868 |
# TW note: if your version of GNU Emacs supports the "--version" option, |
| 845 |
# uncomment this line and comment the next to automatically |
869 |
# uncomment this line and comment the next to automatically |
| 846 |
# detect the version, else set "_emacs_ver" to your version. |
870 |
# detect the version, else set "_emacs_ver" to your version. |
| 847 |
#set _emacs_ver=`emacs --version | sed -e 's%GNU Emacs %%' -e q | cut -d . -f1-2` |
871 |
#set _emacs_ver=`emacs --version | sed -e 's%GNU Emacs %%' -e q | cut -d . -f1-2` |
| 848 |
set _emacs_ver=21.3 |
872 |
set _emacs_ver=21.3 |
| 849 |
set _emacs_dir=`which emacs | sed s%/bin/emacs%%` |
873 |
set _emacs_dir=`which emacs | sed s%/bin/emacs%%` |
| 850 |
complete emacs c/--/"(batch terminal display no-windows no-init-file \ |
874 |
complete emacs c/--/"(batch terminal display no-windows no-init-file \ |
| 851 |
user debug-init unibyte multibyte version help \ |
875 |
user debug-init unibyte multibyte version help \ |
| 852 |
no-site-file funcall load eval insert kill)"/ \ |
876 |
no-site-file funcall load eval insert kill)"/ \ |
| 853 |
c/-/"(t d nw q u f l -)"/ c/+/x:'<line_number>'/ \ |
877 |
c/-/"(t d nw q u f l -)"/ c/+/x:'<line_number>'/ \ |
| 854 |
n/{-t,--terminal}/x:'<terminal>'/ n/{-d,--display}/x:'<display>'/ \ |
878 |
n/{-t,--terminal}/x:'<terminal>'/ n/{-d,--display}/x:'<display>'/ \ |
| 855 |
n/{-u,--user}/u/ n/{-f,--funcall}/x:'<lisp_function>'/ \ |
879 |
n/{-u,--user}/u/ n/{-f,--funcall}/x:'<lisp_function>'/ \ |
| 856 |
n@{-l,--load}@F:$_emacs_dir/share/emacs/$_emacs_ver/lisp@ \ |
880 |
n@{-l,--load}@F:$_emacs_dir/share/emacs/$_emacs_ver/lisp@ \ |
| 857 |
n/--eval/x:'<expression>'/ n/--insert/f/ n/*/f:^*[\#~]/ |
881 |
n/--eval/x:'<expression>'/ n/--insert/f/ n/*/f:^*[\#~]/ |
| 858 |
unset _emacs_ver _emacs_dir |
882 |
unset _emacs_ver _emacs_dir |
| 859 |
endif |
883 |
endif |
| 860 |
|
884 |
|
| 861 |
complete gzcat c/--/"(force help license quiet version)"/ \ |
885 |
complete gzcat c/--/"(force help license quiet version)"/ \ |
| 862 |
c/-/"(f h L q V -)"/ n/*/f:*.{gz,Z,z,zip}/ |
886 |
c/-/"(f h L q V -)"/ n/*/f:*.{gz,Z,z,zip}/ |
| 863 |
complete gzip c/--/"(stdout to-stdout decompress uncompress \ |
887 |
complete gzip c/--/"(stdout to-stdout decompress uncompress \ |
| 864 |
force help list license no-name quiet recurse \ |
888 |
force help list license no-name quiet recurse \ |
| 865 |
suffix test verbose version fast best)"/ \ |
889 |
suffix test verbose version fast best)"/ \ |
| 866 |
c/-/"(c d f h l L n q r S t v V 1 2 3 4 5 6 7 8 9 -)"/\ |
890 |
c/-/"(c d f h l L n q r S t v V 1 2 3 4 5 6 7 8 9 -)"/\ |
| 867 |
n/{-S,--suffix}/x:'<file_name_suffix>'/ \ |
891 |
n/{-S,--suffix}/x:'<file_name_suffix>'/ \ |
| 868 |
n/{-d,--{de,un}compress}/f:*.{gz,Z,z,zip,taz,tgz}/ \ |
892 |
n/{-d,--{de,un}compress}/f:*.{gz,Z,z,zip,taz,tgz}/ \ |
| 869 |
N/{-d,--{de,un}compress}/f:*.{gz,Z,z,zip,taz,tgz}/ \ |
893 |
N/{-d,--{de,un}compress}/f:*.{gz,Z,z,zip,taz,tgz}/ \ |
| 870 |
n/*/f:^*.{gz,Z,z,zip,taz,tgz}/ |
894 |
n/*/f:^*.{gz,Z,z,zip,taz,tgz}/ |
| 871 |
complete {gunzip,ungzip} c/--/"(stdout to-stdout force help list license \ |
895 |
complete {gunzip,ungzip} c/--/"(stdout to-stdout force help list license \ |
| 872 |
no-name quiet recurse suffix test verbose version)"/ \ |
896 |
no-name quiet recurse suffix test verbose version)"/ \ |
| 873 |
c/-/"(c f h l L n q r S t v V -)"/ \ |
897 |
c/-/"(c f h l L n q r S t v V -)"/ \ |
| 874 |
n/{-S,--suffix}/x:'<file_name_suffix>'/ \ |
898 |
n/{-S,--suffix}/x:'<file_name_suffix>'/ \ |
| 875 |
n/*/f:*.{gz,Z,z,zip,taz,tgz}/ |
899 |
n/*/f:*.{gz,Z,z,zip,taz,tgz}/ |
| 876 |
complete zgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
900 |
complete zgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
| 877 |
c/-/"(A b B c C e f h i l n s v V w x)"/ \ |
901 |
c/-/"(A b B c C e f h i l n s v V w x)"/ \ |
| 878 |
p/1/x:'<limited_regular_expression>'/ N/-*e/f/ \ |
902 |
p/1/x:'<limited_regular_expression>'/ N/-*e/f/ \ |
| 879 |
n/-*e/x:'<limited_regular_expression>'/ n/-*f/f/ n/*/f/ |
903 |
n/-*e/x:'<limited_regular_expression>'/ n/-*f/f/ n/*/f/ |
| 880 |
complete zegrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
904 |
complete zegrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
| 881 |
c/-/"(A b B c C e f h i l n s v V w x)"/ \ |
905 |
c/-/"(A b B c C e f h i l n s v V w x)"/ \ |
| 882 |
p/1/x:'<full_regular_expression>'/ N/-*e/f/ \ |
906 |
p/1/x:'<full_regular_expression>'/ N/-*e/f/ \ |
| 883 |
n/-*e/x:'<full_regular_expression>'/ n/-*f/f/ n/*/f/ |
907 |
n/-*e/x:'<full_regular_expression>'/ n/-*f/f/ n/*/f/ |
| 884 |
complete zfgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
908 |
complete zfgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
| 885 |
c/-/"(A b B c C e f h i l n s v V w x)"/ \ |
909 |
c/-/"(A b B c C e f h i l n s v V w x)"/ \ |
| 886 |
p/1/x:'<fixed_string>'/ N/-*e/f/ \ |
910 |
p/1/x:'<fixed_string>'/ N/-*e/f/ \ |
| 887 |
n/-*e/x:'<fixed_string>'/ n/-*f/f/ n/*/f/ |
911 |
n/-*e/x:'<fixed_string>'/ n/-*f/f/ n/*/f/ |
| 888 |
complete znew c/-/"(f t v 9 P K)"/ n/*/f:*.Z/ |
912 |
complete znew c/-/"(f t v 9 P K)"/ n/*/f:*.Z/ |
| 889 |
complete zmore n/*/f:*.{gz,Z,z,zip}/ |
913 |
complete zmore n/*/f:*.{gz,Z,z,zip}/ |
| 890 |
complete zfile n/*/f:*.{gz,Z,z,zip,taz,tgz}/ |
914 |
complete zfile n/*/f:*.{gz,Z,z,zip,taz,tgz}/ |
| 891 |
complete ztouch n/*/f:*.{gz,Z,z,zip,taz,tgz}/ |
915 |
complete ztouch n/*/f:*.{gz,Z,z,zip,taz,tgz}/ |
| 892 |
complete zforce n/*/f:^*.{gz,tgz}/ |
916 |
complete zforce n/*/f:^*.{gz,tgz}/ |
| 893 |
|
917 |
|
| 894 |
complete dcop 'p/1/`$:0`/ /' \ |
918 |
complete dcop 'p/1/`$:0`/ /' \ |
| 895 |
'p/2/`$:0 $:1 | awk \{print\ \$1\}`/ /' \ |
919 |
'p/2/`$:0 $:1 | awk \{print\ \$1\}`/ /' \ |
| 896 |
'p/3/`$:0 $:1 $:2 | sed "s%.* \(.*\)(.*%\1%"`/ /' |
920 |
'p/3/`$:0 $:1 $:2 | sed "s%.* \(.*\)(.*%\1%"`/ /' |
| 897 |
|
921 |
|
| 898 |
|
922 |
|
| 899 |
complete grep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
923 |
complete grep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
| 900 |
c/--/"(extended-regexp fixed-regexp basic-regexp \ |
924 |
c/--/"(extended-regexp fixed-regexp basic-regexp \ |
| 901 |
regexp file ignore-case word-regexp line-regexp \ |
925 |
regexp file ignore-case word-regexp line-regexp \ |
| 902 |
no-messages revert-match version help byte-offset \ |
926 |
no-messages revert-match version help byte-offset \ |
| 903 |
line-number with-filename no-filename quiet silent \ |
927 |
line-number with-filename no-filename quiet silent \ |
| 904 |
text directories recursive files-without-match \ |
928 |
text directories recursive files-without-match \ |
| 905 |
files-with-matches count before-context after-context \ |
929 |
files-with-matches count before-context after-context \ |
| 906 |
context binary unix-byte-offsets)"/ \ |
930 |
context binary unix-byte-offsets)"/ \ |
| 907 |
c/-/"(A a B b C c d E e F f G H h i L l n q r s U u V \ |
931 |
c/-/"(A a B b C c d E e F f G H h i L l n q r s U u V \ |
| 908 |
v w x)"/ \ |
932 |
v w x)"/ \ |
| 909 |
p/1/x:'<limited_regular_expression>'/ N/-*e/f/ \ |
933 |
p/1/x:'<limited_regular_expression>'/ N/-*e/f/ \ |
| 910 |
n/-*e/x:'<limited_regular_expression>'/ n/-*f/f/ n/*/f/ |
934 |
n/-*e/x:'<limited_regular_expression>'/ n/-*f/f/ n/*/f/ |
| 911 |
complete egrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
935 |
complete egrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
| 912 |
c/--/"(extended-regexp fixed-regexp basic-regexp \ |
936 |
c/--/"(extended-regexp fixed-regexp basic-regexp \ |
| 913 |
regexp file ignore-case word-regexp line-regexp \ |
937 |
regexp file ignore-case word-regexp line-regexp \ |
| 914 |
no-messages revert-match version help byte-offset \ |
938 |
no-messages revert-match version help byte-offset \ |
| 915 |
line-number with-filename no-filename quiet silent \ |
939 |
line-number with-filename no-filename quiet silent \ |
| 916 |
text directories recursive files-without-match \ |
940 |
text directories recursive files-without-match \ |
| 917 |
files-with-matches count before-context after-context \ |
941 |
files-with-matches count before-context after-context \ |
| 918 |
context binary unix-byte-offsets)"/ \ |
942 |
context binary unix-byte-offsets)"/ \ |
| 919 |
c/-/"(A a B b C c d E e F f G H h i L l n q r s U u V \ |
943 |
c/-/"(A a B b C c d E e F f G H h i L l n q r s U u V \ |
| 920 |
v w x)"/ \ |
944 |
v w x)"/ \ |
| 921 |
p/1/x:'<full_regular_expression>'/ N/-*e/f/ \ |
945 |
p/1/x:'<full_regular_expression>'/ N/-*e/f/ \ |
| 922 |
n/-*e/x:'<full_regular_expression>'/ n/-*f/f/ n/*/f/ |
946 |
n/-*e/x:'<full_regular_expression>'/ n/-*f/f/ n/*/f/ |
| 923 |
complete fgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
947 |
complete fgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\ |
| 924 |
c/--/"(extended-regexp fixed-regexp basic-regexp \ |
948 |
c/--/"(extended-regexp fixed-regexp basic-regexp \ |
| 925 |
regexp file ignore-case word-regexp line-regexp \ |
949 |
regexp file ignore-case word-regexp line-regexp \ |
| 926 |
no-messages revert-match version help byte-offset \ |
950 |
no-messages revert-match version help byte-offset \ |
| 927 |
line-number with-filename no-filename quiet silent \ |
951 |
line-number with-filename no-filename quiet silent \ |
| 928 |
text directories recursive files-without-match \ |
952 |
text directories recursive files-without-match \ |
| 929 |
files-with-matches count before-context after-context \ |
953 |
files-with-matches count before-context after-context \ |
| 930 |
context binary unix-byte-offsets)"/ \ |
954 |
context binary unix-byte-offsets)"/ \ |
| 931 |
c/-/"(A a B b C c d E e F f G H h i L l n q r s U u V \ |
955 |
c/-/"(A a B b C c d E e F f G H h i L l n q r s U u V \ |
| 932 |
v w x)"/ \ |
956 |
v w x)"/ \ |
| 933 |
p/1/x:'<fixed_string>'/ N/-*e/f/ \ |
957 |
p/1/x:'<fixed_string>'/ N/-*e/f/ \ |
| 934 |
n/-*e/x:'<fixed_string>'/ n/-*f/f/ n/*/f/ |
958 |
n/-*e/x:'<fixed_string>'/ n/-*f/f/ n/*/f/ |
| 935 |
|
959 |
|
| 936 |
complete sed c/--/"(quiet silent version help expression file)"/ \ |
960 |
complete sed c/--/"(quiet silent version help expression file)"/ \ |
| 937 |
c/-/"(n V e f -)"/ n/{-e,--expression}/x:'<script>'/ \ |
961 |
c/-/"(n V e f -)"/ n/{-e,--expression}/x:'<script>'/ \ |
| 938 |
n/{-f,--file}/f:*.sed/ N/-{e,f,-{file,expression}}/f/ \ |
962 |
n/{-f,--file}/f:*.sed/ N/-{e,f,-{file,expression}}/f/ \ |
| 939 |
n/-/x:'<script>'/ N/-/f/ p/1/x:'<script>'/ p/2/f/ |
963 |
n/-/x:'<script>'/ N/-/f/ p/1/x:'<script>'/ p/2/f/ |
| 940 |
|
964 |
|
| 941 |
complete users c/--/"(help version)"/ p/1/x:'<accounting_file>'/ |
965 |
complete users c/--/"(help version)"/ p/1/x:'<accounting_file>'/ |
| 942 |
complete who c/--/"(heading idle count mesg message writable help \ |
966 |
complete who c/--/"(heading idle count mesg message writable help \ |
| 943 |
version)"/ c/-/"(H i m q s T w u -)"/ \ |
967 |
version)"/ c/-/"(H i m q s T w u -)"/ \ |
| 944 |
p/1/x:'<accounting_file>'/ n/am/"(i)"/ n/are/"(you)"/ |
968 |
p/1/x:'<accounting_file>'/ n/am/"(i)"/ n/are/"(you)"/ |
| 945 |
|
969 |
|
| 946 |
complete chown c/--/"(changes dereference no-dereference silent \ |
970 |
complete chown c/--/"(changes dereference no-dereference silent \ |
| 947 |
quiet reference recursive verbose help version)"/ \ |
971 |
quiet reference recursive verbose help version)"/ \ |
| 948 |
c/-/"(c f h R v -)"/ C@[./\$~]@f@ c/*[.:]/g/ \ |
972 |
c/-/"(c f h R v -)"/ C@[./\$~]@f@ c/*[.:]/g/ \ |
| 949 |
n/-/u/: p/1/u/: n/*/f/ |
973 |
n/-/u/: p/1/u/: n/*/f/ |
| 950 |
complete chgrp c/--/"(changes no-dereference silent quiet reference \ |
974 |
complete chgrp c/--/"(changes no-dereference silent quiet reference \ |
| 951 |
recursive verbose help version)"/ \ |
975 |
recursive verbose help version)"/ \ |
| 952 |
c/-/"(c f h R v -)"/ n/-/g/ p/1/g/ n/*/f/ |
976 |
c/-/"(c f h R v -)"/ n/-/g/ p/1/g/ n/*/f/ |
| 953 |
complete chmod c/--/"(changes silent quiet verbose reference \ |
977 |
complete chmod c/--/"(changes silent quiet verbose reference \ |
| 954 |
recursive help version)"/ c/-/"(c f R v)"/ |
978 |
recursive help version)"/ c/-/"(c f R v)"/ |
| 955 |
complete df c/--/"(all block-size human-readable si inodes \ |
979 |
complete df c/--/"(all block-size human-readable si inodes \ |
| 956 |
kilobytes local megabytes no-sync portability sync \ |
980 |
kilobytes local megabytes no-sync portability sync \ |
| 957 |
type print-type exclude-type help version)"/ \ |
981 |
type print-type exclude-type help version)"/ \ |
| 958 |
c/-/"(a H h i k l m P T t v x)"/ |
982 |
c/-/"(a H h i k l m P T t v x)"/ |
| 959 |
complete du c/--/"(all block-size bytes total dereference-args \ |
983 |
complete du c/--/"(all block-size bytes total dereference-args \ |
| 960 |
human-readable si kilobytes count-links dereference \ |
984 |
human-readable si kilobytes count-links dereference \ |
| 961 |
megabytes separate-dirs summarize one-file-system \ |
985 |
megabytes separate-dirs summarize one-file-system \ |
| 962 |
exclude-from exclude max-depth help version"/ \ |
986 |
exclude-from exclude max-depth help version"/ \ |
| 963 |
c/-/"(a b c D H h k L l m S s X x)"/ |
987 |
c/-/"(a b c D H h k L l m S s X x)"/ |
| 964 |
|
988 |
|
| 965 |
complete cat c/--/"(number-nonblank number squeeze-blank show-all \ |
989 |
complete cat c/--/"(number-nonblank number squeeze-blank show-all \ |
| 966 |
show-nonprinting show-ends show-tabs help version)"/ \ |
990 |
show-nonprinting show-ends show-tabs help version)"/ \ |
| 967 |
c/-/"(A b E e n s T t u v -)"/ n/*/f/ |
991 |
c/-/"(A b E e n s T t u v -)"/ n/*/f/ |
| 968 |
complete mv c/--/"(backup force interactive update verbose suffix \ |
992 |
complete mv c/--/"(backup force interactive update verbose suffix \ |
| 969 |
version-control help version)"/ \ |
993 |
version-control help version)"/ \ |
| 970 |
c/-/"(b f i S u V v -)"/ \ |
994 |
c/-/"(b f i S u V v -)"/ \ |
| 971 |
n/{-S,--suffix}/x:'<suffix>'/ \ |
995 |
n/{-S,--suffix}/x:'<suffix>'/ \ |
| 972 |
n/{-V,--version-control}/"(t numbered nil existing \ |
996 |
n/{-V,--version-control}/"(t numbered nil existing \ |
| 973 |
never simple)"/ n/-/f/ N/-/d/ p/1/f/ p/2/d/ n/*/f/ |
997 |
never simple)"/ n/-/f/ N/-/d/ p/1/f/ p/2/d/ n/*/f/ |
| 974 |
complete cp c/--/"(archive backup no-dereference force \ |
998 |
complete cp c/--/"(archive backup no-dereference force \ |
| 975 |
interactive link preserve parents sparse recursive \ |
999 |
interactive link preserve parents sparse recursive \ |
| 976 |
symbolic-link suffix update verbose version-control \ |
1000 |
symbolic-link suffix update verbose version-control \ |
| 977 |
one-file-system help version)"/ \ |
1001 |
one-file-system help version)"/ \ |
| 978 |
c/-/"(a b d f i l P p R r S s u V v x -)"/ \ |
1002 |
c/-/"(a b d f i l P p R r S s u V v x -)"/ \ |
| 979 |
n/-*r/d/ n/{-S,--suffix}/x:'<suffix>'/ \ |
1003 |
n/-*r/d/ n/{-S,--suffix}/x:'<suffix>'/ \ |
| 980 |
n/{-V,--version-control}/"(t numbered nil existing \ |
1004 |
n/{-V,--version-control}/"(t numbered nil existing \ |
| 981 |
never simple)"/ n/-/f/ N/-/d/ p/1/f/ p/2/d/ n/*/f/ |
1005 |
never simple)"/ n/-/f/ N/-/d/ p/1/f/ p/2/d/ n/*/f/ |
| 982 |
complete ln c/--/"(backup directory force no-dereference \ |
1006 |
complete ln c/--/"(backup directory force no-dereference \ |
| 983 |
interactive symbolic suffix verbose version-control \ |
1007 |
interactive symbolic suffix verbose version-control \ |
| 984 |
help version)"/ \ |
1008 |
help version)"/ \ |
| 985 |
c/-/"(b d F f i n S s V v -)"/ \ |
1009 |
c/-/"(b d F f i n S s V v -)"/ \ |
| 986 |
n/{-S,--suffix}/x:'<suffix>'/ \ |
1010 |
n/{-S,--suffix}/x:'<suffix>'/ \ |
| 987 |
n/{-V,--version-control}/"(t numbered nil existing \ |
1011 |
n/{-V,--version-control}/"(t numbered nil existing \ |
| 988 |
never simple)"/ n/-/f/ N/-/x:'<link_name>'/ \ |
1012 |
never simple)"/ n/-*/f/ N/-*/x:'<link_name>'/ \ |
| 989 |
p/1/f/ p/2/x:'<link_name>'/ |
1013 |
p/1/f/ p/2/x:'<link_name>'/ |
| 990 |
complete touch c/--/"(date reference time help version)"/ \ |
1014 |
complete touch c/--/"(date reference time help version)"/ \ |
| 991 |
c/-/"(a c d f m r t -)"/ \ |
1015 |
c/-/"(a c d f m r t -)"/ \ |
| 992 |
n/{-d,--date}/x:'<date_string>'/ \ |
1016 |
n/{-d,--date}/x:'<date_string>'/ \ |
| 993 |
c/--time/"(access atime mtime modify use)"/ \ |
1017 |
c/--time/"(access atime mtime modify use)"/ \ |
| 994 |
n/{-r,--file}/f/ n/-t/x:'<time_stamp>'/ n/*/f/ |
1018 |
n/{-r,--file}/f/ n/-t/x:'<time_stamp>'/ n/*/f/ |
| 995 |
complete mkdir c/--/"(mode parents verbose help version)"/ \ |
1019 |
complete mkdir c/--/"(mode parents verbose help version)"/ \ |
| 996 |
c/-/"(p m -)"/ \ |
1020 |
c/-/"(p m -)"/ \ |
| 997 |
n/{-m,--mode}/x:'<mode>'/ n/*/d/ |
1021 |
n/{-m,--mode}/x:'<mode>'/ n/*/d/ |
| 998 |
complete rmdir c/--/"(ignore-fail-on-non-empty parents verbose help \ |
1022 |
complete rmdir c/--/"(ignore-fail-on-non-empty parents verbose help \ |
| 999 |
version)"/ c/-/"(p -)"/ n/*/d/ |
1023 |
version)"/ c/-/"(p -)"/ n/*/d/ |
| 1000 |
complete env 'c/*=/f/' 'p/1/e/=/' 'p/2/c/' |
1024 |
complete env 'c/*=/f/' 'p/1/e/=/' 'p/2/c/' |
| 1001 |
|
1025 |
|
| 1002 |
complete tar c/-[Acru]*/"(b B C f F g G h i l L M N o P \ |
1026 |
complete tar c/-[Acru]*/"(b B C f F g G h i l L M N o P \ |
| 1003 |
R S T v V w W X z Z)"/ \ |
1027 |
R S T v V w W X z Z)"/ \ |
| 1004 |
c/-[dtx]*/"( B C f F g G i k K m M O p P \ |
1028 |
c/-[dtx]*/"( B C f F g G i k K m M O p P \ |
| 1005 |
R s S T v w x X z Z)"/ \ |
1029 |
R s S T v w x X z Z)"/ \ |
| 1006 |
p/1/"(A c d r t u x -A -c -d -r -t -u -x \ |
1030 |
p/1/"(A c d r t u x -A -c -d -r -t -u -x \ |
| 1007 |
--catenate --concatenate --create --diff --compare \ |
1031 |
--catenate --concatenate --create --diff --compare \ |
| 1008 |
--delete --append --list --update --extract --get \ |
1032 |
--delete --append --list --update --extract --get \ |
| 1009 |
--help --version)"/ \ |
1033 |
--help --version)"/ \ |
| 1010 |
c/--/"(catenate concatenate create diff compare \ |
1034 |
c/--/"(catenate concatenate create diff compare \ |
| 1011 |
delete append list update extract get atime-preserve \ |
1035 |
delete append list update extract get atime-preserve \ |
| 1012 |
block-size read-full-blocks directory checkpoint file \ |
1036 |
block-size read-full-blocks directory checkpoint file \ |
| 1013 |
force-local info-script new-volume-script incremental \ |
1037 |
force-local info-script new-volume-script incremental \ |
| 1014 |
listed-incremental dereference ignore-zeros \ |
1038 |
listed-incremental dereference ignore-zeros \ |
| 1015 |
ignore-failed-read keep-old-files starting-file \ |
1039 |
ignore-failed-read keep-old-files starting-file \ |
| 1016 |
one-file-system tape-length modification-time \ |
1040 |
one-file-system tape-length modification-time \ |
| 1017 |
multi-volume after-date newer old-archive portability \ |
1041 |
multi-volume after-date newer old-archive portability \ |
| 1018 |
to-stdout same-permissions preserve-permissions \ |
1042 |
to-stdout same-permissions preserve-permissions \ |
| 1019 |
absolute-paths preserve record-number remove-files \ |
1043 |
absolute-paths preserve record-number remove-files \ |
| 1020 |
same-order preserve-order same-owner sparse \ |
1044 |
same-order preserve-order same-owner sparse \ |
| 1021 |
files-from null totals verbose label version \ |
1045 |
files-from null totals verbose label version \ |
| 1022 |
interactive confirmation verify exclude exclude-from \ |
1046 |
interactive confirmation verify exclude exclude-from \ |
| 1023 |
compress uncompress gzip ungzip use-compress-program \ |
1047 |
compress uncompress gzip ungzip use-compress-program \ |
| 1024 |
block-compress help version)"/ \ |
1048 |
block-compress help version)"/ \ |
| 1025 |
c/-/"(b B C f F g G h i k K l L m M N o O p P R s S \ |
1049 |
c/-/"(b B C f F g G h i k K l L m M N o O p P R s S \ |
| 1026 |
T v V w W X z Z 0 1 2 3 4 5 6 7 -)"/ \ |
1050 |
T v V w W X z Z 0 1 2 3 4 5 6 7 -)"/ \ |
| 1027 |
C@/dev@f@ \ |
1051 |
C@/dev@f@ \ |
| 1028 |
n/-c*f/x:'<new_tar_file, device_file, or "-">'/ \ |
1052 |
n/-c*f/x:'<new_tar_file, device_file, or "-">'/ \ |
| 1029 |
n/{-[Adrtux]j*f,--file}/f:*.{tar.bz2,tbz}/ \ |
1053 |
n/{-[Adrtux]j*f,--file}/f:*.{tar.bz2,tbz}/ \ |
| 1030 |
n/{-[Adrtux]z*f,--file}/f:*.{tar.gz,tgz}/ \ |
1054 |
n/{-[Adrtux]z*f,--file}/f:*.{tar.gz,tgz}/ \ |
| 1031 |
n/{-[Adrtux]Z*f,--file}/f:*.{tar.Z,taz}/ \ |
1055 |
n/{-[Adrtux]Z*f,--file}/f:*.{tar.Z,taz}/ \ |
| 1032 |
n/{-[Adrtux]*f,--file}/f:*.tar/ \ |
1056 |
n/{-[Adrtux]*f,--file}/f:*.tar/ \ |
| 1033 |
N/{-xj*f,--file}/'`tar -tjf $:-1`'/ \ |
1057 |
N/{-xj*f,--file}/'`tar -tjf $:-1`'/ \ |
| 1034 |
N/{-xz*f,--file}/'`tar -tzf $:-1`'/ \ |
1058 |
N/{-xz*f,--file}/'`tar -tzf $:-1`'/ \ |
| 1035 |
N/{-xZ*f,--file}/'`tar -tZf $:-1`'/ \ |
1059 |
N/{-xZ*f,--file}/'`tar -tZf $:-1`'/ \ |
| 1036 |
N/{-x*f,--file}/'`tar -tf $:-1`'/ \ |
1060 |
N/{-x*f,--file}/'`tar -tf $:-1`'/ \ |
| 1037 |
n/--use-compress-program/c/ \ |
1061 |
n/--use-compress-program/c/ \ |
| 1038 |
n/{-b,--block-size}/x:'<block_size>'/ \ |
1062 |
n/{-b,--block-size}/x:'<block_size>'/ \ |
| 1039 |
n/{-V,--label}/x:'<volume_label>'/ \ |
1063 |
n/{-V,--label}/x:'<volume_label>'/ \ |
| 1040 |
n/{-N,--{after-date,newer}}/x:'<date>'/ \ |
1064 |
n/{-N,--{after-date,newer}}/x:'<date>'/ \ |
| 1041 |
n/{-L,--tape-length}/x:'<tape_length_in_kB>'/ \ |
1065 |
n/{-L,--tape-length}/x:'<tape_length_in_kB>'/ \ |
| 1042 |
n/{-C,--directory}/d/ \ |
1066 |
n/{-C,--directory}/d/ \ |
| 1043 |
N/{-C,--directory}/'`\ls $:-1`'/ \ |
1067 |
N/{-C,--directory}/'`\ls $:-1`'/ \ |
| 1044 |
n/-[0-7]/"(l m h)"/ |
1068 |
n/-[0-7]/"(l m h)"/ |
| 1045 |
|
1069 |
|
| 1046 |
switch ( "$OSTYPE" ) |
1070 |
switch ( "$OSTYPE" ) |
| 1047 |
case "linux": |
1071 |
case linux: |
| 1048 |
# Linux filesystems |
1072 |
# Linux filesystems |
| 1049 |
complete mount c/-/"(a f F h l n o r s t U v V w)"/ n/-[hV]/n/ \ |
1073 |
complete mount c/-/"(a f F h l n o r s t U v V w)"/ n/-[hV]/n/ \ |
| 1050 |
n/-o/x:'<options>'/ n/-t/x:'<vfstype>'/ \ |
1074 |
n/-o/x:'<options>'/ n/-t/x:'<vfstype>'/ \ |
| 1051 |
n/-L/x:'<label>'/ n/-U/x:'<uuid>'/ \ |
1075 |
n/-L/x:'<label>'/ n/-U/x:'<uuid>'/ \ |
| 1052 |
n@*@'`grep -v "^#" /etc/fstab | tr -s " " " " | cut -f 2`'@ |
1076 |
n@*@'`grep -v "^#" /etc/fstab | tr -s " " " " | cut -f 2`'@ |
| 1053 |
complete umount c/-/"(a h n r t v V)"/ n/-t/x:'<vfstype>'/ \ |
1077 |
complete umount c/-/"(a h n r t v V)"/ n/-t/x:'<vfstype>'/ \ |
| 1054 |
n/*/'`mount | cut -d " " -f 3`'/ |
1078 |
n/*/'`mount | cut -d " " -f 3`'/ |
| 1055 |
breaksw |
1079 |
breaksw |
| 1056 |
case "sunos*": |
1080 |
case sunos*: |
| 1057 |
case "solaris": |
1081 |
case solaris: |
| 1058 |
# Solaris filesystems |
1082 |
# Solaris filesystems |
| 1059 |
complete mount c/-/"(a F m o O p r v V)"/ n/-p/n/ n/-v/n/ \ |
1083 |
complete mount c/-/"(a F m o O p r v V)"/ n/-p/n/ n/-v/n/ \ |
| 1060 |
n/-o/x:'<FSType_options>'/ \ |
1084 |
n/-o/x:'<FSType_options>'/ \ |
| 1061 |
n@-F@'`\ls -1 /usr/lib/fs`'@ \ |
1085 |
n@-F@'`\ls -1 /usr/lib/fs`'@ \ |
| 1062 |
n@*@'`grep -v "^#" /etc/vfstab | tr -s " " " " | cut -f 3`'@ |
1086 |
n@*@'`grep -v "^#" /etc/vfstab | tr -s " " " " | cut -f 3`'@ |
| 1063 |
complete umount c/-/"(a o V)"/ n/-o/x:'<FSType_options>'/ \ |
1087 |
complete umount c/-/"(a o V)"/ n/-o/x:'<FSType_options>'/ \ |
| 1064 |
n/*/'`mount | cut -d " " -f 1`'/ |
1088 |
n/*/'`mount | cut -d " " -f 1`'/ |
| 1065 |
complete mountall c/-/"(F l r)"/ n@-F@'`\ls -1 /usr/lib/fs`'@ |
1089 |
complete mountall c/-/"(F l r)"/ n@-F@'`\ls -1 /usr/lib/fs`'@ |
| 1066 |
complete umountall c/-/"(F h k l r s)"/ n@-F@'`\ls -1 /usr/lib/fs`'@ \ |
1090 |
complete umountall c/-/"(F h k l r s)"/ n@-F@'`\ls -1 /usr/lib/fs`'@ \ |
| 1067 |
n/-h/'`df -k | cut -s -d ":" -f 1 | sort -u`'/ |
1091 |
n/-h/'`df -k | cut -s -d ":" -f 1 | sort -u`'/ |
| 1068 |
breaksw |
1092 |
breaksw |
| 1069 |
case "cygwin": |
1093 |
case cygwin: |
| 1070 |
# Cygwin mounts |
1094 |
# Cygwin mounts |
| 1071 |
complete mount c/-/"(b c f h m o p s t u v x E X)"/ n/-[hmpv]/n/ \ |
1095 |
complete mount c/-/"(b c f h m o p s t u v x E X)"/ n/-[hmpv]/n/ \ |
| 1072 |
n/-c/x:'/'/ \ |
1096 |
n/-c/x:'/'/ \ |
| 1073 |
n/-o/"(user system binary text exec notexec cygexec nosuid managed)"/ \ |
1097 |
n/-o/"(user system binary text exec notexec cygexec nosuid managed)"/ \ |
| 1074 |
n@*@'`mount -p | tail -1 | cut -d " " -f 1 | xargs ls -1 | awk '"'"'{print $1":/"; } END{print "//";}'"'"'`'@ |
1098 |
n@*@'`mount -p | tail -1 | cut -d " " -f 1 | xargs ls -1 | awk '"'"'{print $1":/"; } END{print "//";}'"'"'`'@ |
| 1075 |
complete umount c/-/"(A c h s S u U v)"/ n/-[AhSUv]/n/ \ |
1099 |
complete umount c/-/"(A c h s S u U v)"/ n/-[AhSUv]/n/ \ |
| 1076 |
n@*@'`mount | grep -v noumount | cut -d " " -f 3`'@ |
1100 |
n@*@'`mount | grep -v noumount | cut -d " " -f 3`'@ |
| 1077 |
breaksw |
1101 |
breaksw |
| 1078 |
default: |
1102 |
endsw |
| 1079 |
breaksw |
|
|
| 1080 |
endsw |
| 1081 |
|
1103 |
|
| 1082 |
# these deal with NIS (formerly YP); if it's not running you don't need 'em |
1104 |
# these deal with NIS (formerly YP); if it's not running you don't need 'em |
| 1083 |
if (-X domainname) then |
1105 |
if (-X domainname) then |
| 1084 |
set _domain = "`domainname`" |
1106 |
set _domain = "`domainname`" |
| 1085 |
set _ypdir = /var/yp # directory where NIS (YP) maps are kept |
1107 |
set _ypdir = /var/yp # directory where NIS (YP) maps are kept |
| 1086 |
if ("$_domain" != "" && "$_domain" != "noname") then |
1108 |
if ("$_domain" != "" && "$_domain" != "noname") then |
| 1087 |
complete domainname p@1@D:$_ypdir@" " n@*@n@ |
1109 |
complete domainname p@1@D:$_ypdir@" " n@*@n@ |
| 1088 |
complete ypcat c@-@"(d k t x)"@ n@-x@n@ n@-d@D:$_ypdir@" " \ |
1110 |
complete ypcat c@-@"(d k t x)"@ n@-x@n@ n@-d@D:$_ypdir@" " \ |
| 1089 |
N@-d@\`\\ls\ -1\ $_ypdir/\$:-1\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ \ |
1111 |
N@-d@\`\\ls\ -1\ $_ypdir/\$:-1\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ \ |
| 1090 |
n@*@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ |
1112 |
n@*@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ |
| 1091 |
complete ypmatch c@-@"(d k t x)"@ n@-x@n@ n@-d@D:$_ypdir@" " \ |
1113 |
complete ypmatch c@-@"(d k t x)"@ n@-x@n@ n@-d@D:$_ypdir@" " \ |
| 1092 |
N@-d@x:'<key ...>'@ n@-@x:'<key ...>'@ p@1@x:'<key ...>'@ \ |
1114 |
N@-d@x:'<key ...>'@ n@-@x:'<key ...>'@ p@1@x:'<key ...>'@ \ |
| 1093 |
n@*@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ |
1115 |
n@*@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ |
| 1094 |
complete ypwhich c@-@"(d m t x V1 V2)"@ n@-x@n@ n@-d@D:$_ypdir@" " \ |
1116 |
complete ypwhich c@-@"(d m t x V1 V2)"@ n@-x@n@ n@-d@D:$_ypdir@" " \ |
| 1095 |
n@-m@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ \ |
1117 |
n@-m@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ \ |
| 1096 |
N@-m@n@ n@*@\$hosts@ |
1118 |
N@-m@n@ n@*@\$hosts@ |
| 1097 |
endif |
1119 |
endif |
| 1098 |
unset _domain _ypdir |
1120 |
unset _domain _ypdir |
| 1099 |
endif |
1121 |
endif |
| 1100 |
|
1122 |
|
| 1101 |
complete make \ |
1123 |
complete make \ |
| 1102 |
'n/-f/f/' \ |
1124 |
'n/-f/f/' \ |
| 1103 |
'c/*=/f/' \ |
1125 |
'c/*=/f/' \ |
| 1104 |
'n@*@`cat -s GNUmakefile Makefile makefile |& sed -n -e "/No such file/d" -e "/^[^ #].*:/s/:.*//p"`@' |
1126 |
'n@*@`cat -s GNUmakefile Makefile makefile |& sed -n -e "/No such file/d" -e "/^[^ #].*:/s/:.*//p"`@' |
| 1105 |
|
1127 |
|
| 1106 |
if ( -f /etc/printcap ) then |
1128 |
if ( -f /etc/printcap ) then |
| 1107 |
set printers=(`sed -n -e "/^[^ #].*:/s/:.*//p" /etc/printcap`) |
1129 |
set printers=(`sed -n -e "/^[^ #].*:/s/:.*//p" /etc/printcap`) |
| 1108 |
|
1130 |
|
| 1109 |
complete lpr 'c/-P/$printers/' |
1131 |
complete lpr 'c/-P/$printers/' |
| 1110 |
complete lpq 'c/-P/$printers/' |
1132 |
complete lpq 'c/-P/$printers/' |
| 1111 |
complete lprm 'c/-P/$printers/' |
1133 |
complete lprm 'c/-P/$printers/' |
| 1112 |
complete lpquota 'p/1/(-Qprlogger)/' 'c/-P/$printers/' |
1134 |
complete lpquota 'p/1/(-Qprlogger)/' 'c/-P/$printers/' |
| 1113 |
complete dvips 'c/-P/$printers/' 'n/-o/f:*.{ps,PS}/' 'n/*/f:*.dvi/' |
1135 |
complete dvips 'c/-P/$printers/' 'n/-o/f:*.{ps,PS}/' 'n/*/f:*.dvi/' |
| 1114 |
complete dvilj 'p/*/f:*.dvi/' |
1136 |
complete dvilj 'p/*/f:*.dvi/' |
| 1115 |
endif |
1137 |
endif |
| 1116 |
|
1138 |
|
| 1117 |
# From Alphonse Bendt |
1139 |
# From Alphonse Bendt |
| 1118 |
complete ant \ |
1140 |
complete ant \ |
| 1119 |
'n/-f/f:*.xml/' \ |
1141 |
'n/-f/f:*.xml/' \ |
| 1120 |
'n@*@`cat build.xml | sed -n -e "s/[ \t]*<target[\t\n]*name=.\([a-zA-Z0-9_:]*\).*/\1/p"`@' |
1142 |
'n@*@`cat build.xml | sed -n -e "s/[ \t]*<target[\t\n]*name=.\([a-zA-Z0-9_:]*\).*/\1/p"`@' |
| 1121 |
|
1143 |
|
| 1122 |
if ($?P4CLIENT && -X perl) then |
1144 |
if ($?P4CLIENT && -X perl) then |
| 1123 |
# This is from Greg Allen. |
1145 |
# This is from Greg Allen. |
| 1124 |
set p4cmds=(add branch branches commands change changes client clients \ |
1146 |
set p4cmds=(add branch branches commands change changes client clients \ |
| 1125 |
counter counters delete depot depots describe diff diff2 \ |
1147 |
counter counters delete depot depots describe diff diff2 \ |
| 1126 |
edit filelog files fix fixes fstat group groups have help \ |
1148 |
edit filelog files fix fixes fstat group groups have help \ |
| 1127 |
info integrate integrated job jobs jobspec label labels \ |
1149 |
info integrate integrated job jobs jobspec label labels \ |
| 1128 |
labelsync lock obliterate opened passwd print protect rename \ |
1150 |
labelsync lock obliterate opened passwd print protect rename \ |
| 1129 |
reopen resolve resolved revert review reviews set submit \ |
1151 |
reopen resolve resolved revert review reviews set submit \ |
| 1130 |
sync triggers unlock user users verify where) |
1152 |
sync triggers unlock user users verify where) |
| 1131 |
complete p4 'p/1/$p4cmds/' 'n/help/$p4cmds/' \ |
1153 |
complete p4 'p/1/$p4cmds/' 'n/help/$p4cmds/' \ |
| 1132 |
'n%{-l,label}%`p4 labels | sed "s/Label \([^ ]*\) .*/\1/"`%' \ |
1154 |
'n%{-l,label}%`p4 labels | sed "s/Label \([^ ]*\) .*/\1/"`%' \ |
| 1133 |
'n%-t%`p4 $:1s | sed "s/[^ ]* \([^ ]*\) .*/\1/"`%' \ |
1155 |
'n%-t%`p4 $:1s | sed "s/[^ ]* \([^ ]*\) .*/\1/"`%' \ |
| 1134 |
'c%*@%`p4 labels | sed "s/Label \([^ ]*\) .*/\1/"`%' \ |
1156 |
'c%*@%`p4 labels | sed "s/Label \([^ ]*\) .*/\1/"`%' \ |
| 1135 |
'c@//*/*@`p4 files $:-0... |& perl -nle "m%\Q$:-0\E([^#][^/# ] \ |
1157 |
'c@//*/*@`p4 files $:-0... |& perl -nle "m%\Q$:-0\E([^#][^/# ] \ |
| 1136 |
*)%;print "\$"1 if \\\!/no such/&&\!"\$"h{"\$"1}++"`@@' \ |
1158 |
*)%;print "\$"1 if \\\!/no such/&&\!"\$"h{"\$"1}++"`@@' \ |
| 1137 |
'c@//@`p4 depots | sed "s/Depot \([^ ]*\) .*/\1/"`@/@' |
1159 |
'c@//@`p4 depots | sed "s/Depot \([^ ]*\) .*/\1/"`@/@' |
| 1138 |
endif |
1160 |
endif |
| 1139 |
|
1161 |
|
| 1140 |
|
1162 |
|
| 1141 |
if (! $?traditional_complete) then |
1163 |
if (! $?traditional_complete) then |
| 1142 |
uncomplete vi |
1164 |
uncomplete vi |
| 1143 |
uncomplete vim |
1165 |
uncomplete vim |
| 1144 |
complete {vi,vim,gvim,nvi,elvis} n/*/f:^*.{o,a,so,sa,aux,dvi,log,fig,bbl,blg,bst,idx,ilg,ind,toc}/ |
1166 |
complete {vi,vim,gvim,nvi,elvis} n/*/f:^*.{o,a,so,sa,aux,dvi,log,fig,bbl,blg,bst,idx,ilg,ind,toc}/ |
| 1145 |
complete {ispell,spell,spellword} 'n@-d@`ls /usr/lib/ispell/*.aff | sed -e "s/\.aff//" `@' 'n/*/f:^*.{o,a,so,sa,aux,dvi,log,fig,bbl,blg,bst,idx,ilg,ind,toc}/' |
1167 |
complete {ispell,spell,spellword} 'n@-d@`ls /usr/lib/ispell/*.aff | sed -e "s/\.aff//" `@' 'n/*/f:^*.{o,a,so,sa,aux,dvi,log,fig,bbl,blg,bst,idx,ilg,ind,toc}/' |
| 1146 |
complete elm 'n/-[Ai]/f/' 'c@=@F:$HOME/Mail/@' 'n/-s/x:\<subject\>/' |
1168 |
complete elm 'n/-[Ai]/f/' 'c@=@F:$HOME/Mail/@' 'n/-s/x:\<subject\>/' |
| 1147 |
complete ncftp 'n@*@`sed -e '1,2d' $HOME/.ncftp/bookmarks | cut -f 1,2 -d "," | tr "," "\012" | sort | uniq ` '@ |
1169 |
complete ncftp 'n@*@`sed -e '1,2d' $HOME/.ncftp/bookmarks | cut -f 1,2 -d "," | tr "," "\012" | sort | uniq ` '@ |
| 1148 |
complete bibtex 'n@*@`ls *.aux | sed -e "s/\.aux//"`'@ |
1170 |
complete bibtex 'n@*@`ls *.aux | sed -e "s/\.aux//"`'@ |
| 1149 |
complete dvi2tty n/*/f:*.dvi/ # Only files that match *.dvi |
1171 |
complete dvi2tty n/*/f:*.dvi/ # Only files that match *.dvi |
| 1150 |
uncomplete gv |
1172 |
uncomplete gv |
| 1151 |
uncomplete ghostview |
1173 |
uncomplete ghostview |
| 1152 |
complete {gv,ghostview} 'n/*/f:*.{ps,eps,epsi}/' |
1174 |
complete {gv,ghostview} 'n/*/f:*.{ps,eps,epsi}/' |
| 1153 |
complete enscript \ |
1175 |
complete enscript \ |
| 1154 |
'c/--/(columns= pages= header= no-header truncate-lines \ |
1176 |
'c/--/(columns= pages= header= no-header truncate-lines \ |
| 1155 |
line-numbers setpagedevice= escapes font= \ |
1177 |
line-numbers setpagedevice= escapes font= \ |
| 1156 |
header-font= fancy-header no-job-header \ |
1178 |
header-font= fancy-header no-job-header \ |
| 1157 |
highlight-bars indent= filter= borders page-prefeed \ |
1179 |
highlight-bars indent= filter= borders page-prefeed \ |
| 1158 |
no-page-prefeed lineprinter lines-per-page= mail \ |
1180 |
no-page-prefeed lineprinter lines-per-page= mail \ |
| 1159 |
media= copies= newline= output= missing-characters \ |
1181 |
media= copies= newline= output= missing-characters \ |
| 1160 |
printer= quiet silent landscape portrait \ |
1182 |
printer= quiet silent landscape portrait \ |
| 1161 |
baselineskip= statusdict= title= tabsize= underlay= \ |
1183 |
baselineskip= statusdict= title= tabsize= underlay= \ |
| 1162 |
verbose version encoding pass-through download-font= \ |
1184 |
verbose version encoding pass-through download-font= \ |
| 1163 |
filter-stdin= help highlight-bar-gray= list-media \ |
1185 |
filter-stdin= help highlight-bar-gray= list-media \ |
| 1164 |
list-options non-printable-format= page-label-format= \ |
1186 |
list-options non-printable-format= page-label-format= \ |
| 1165 |
printer-options= ul-angle= ul-font= ul-gray= \ |
1187 |
printer-options= ul-angle= ul-font= ul-gray= \ |
| 1166 |
ul-position= ul-style= \ |
1188 |
ul-position= ul-style= \ |
| 1167 |
)/' |
1189 |
)/' |
| 1168 |
endif |
1190 |
endif |
| 1169 |
|
1191 |
|
| 1170 |
complete dpkg \ |
1192 |
complete dpkg \ |
| 1171 |
'c/--{admindir,instdir,root}=/d/' \ |
1193 |
'c/--{admindir,instdir,root}=/d/' \ |
| 1172 |
'c/--debug=/n/' \ |
1194 |
'c/--debug=/n/' \ |
| 1173 |
'c/--{admindir,debug,instdir,root}/(=)//' \ |
1195 |
'c/--{admindir,debug,instdir,root}/(=)//' \ |
| 1174 |
'c/--/(admindir= debug= instdir= root= \ |
1196 |
'c/--/(admindir= debug= instdir= root= \ |
| 1175 |
assert-support-predepends assert-working-epoch \ |
1197 |
assert-support-predepends assert-working-epoch \ |
| 1176 |
audit auto-deconfigure clear-avail \ |
1198 |
audit auto-deconfigure clear-avail \ |
| 1177 |
compare-versions configure contents control \ |
1199 |
compare-versions configure contents control \ |
| 1178 |
extract force-bad-path field \ |
1200 |
extract force-bad-path field \ |
| 1179 |
force-configure-any force-conflicts \ |
1201 |
force-configure-any force-conflicts \ |
| 1180 |
force-depends force-depends-version force-help \ |
1202 |
force-depends force-depends-version force-help \ |
| 1181 |
force-hold force-non-root \ |
1203 |
force-hold force-non-root \ |
| 1182 |
force-overwrite-diverted \ |
1204 |
force-overwrite-diverted \ |
| 1183 |
force-remove-essential force-remove-reinstreq \ |
1205 |
force-remove-essential force-remove-reinstreq \ |
| 1184 |
forget-old-unavail fsys-tarfile get-selections \ |
1206 |
forget-old-unavail fsys-tarfile get-selections \ |
| 1185 |
help ignore-depends info install largemem \ |
1207 |
help ignore-depends info install largemem \ |
| 1186 |
license list listfiles merge-avail no-act \ |
1208 |
license list listfiles merge-avail no-act \ |
| 1187 |
pending predep-package print-architecture \ |
1209 |
pending predep-package print-architecture \ |
| 1188 |
print-gnu-build-architecture \ |
1210 |
print-gnu-build-architecture \ |
| 1189 |
print-installation-architecture print-avail \ |
1211 |
print-installation-architecture print-avail \ |
| 1190 |
purge record-avail recursive refuse-downgrade \ |
1212 |
purge record-avail recursive refuse-downgrade \ |
| 1191 |
remove search set-selections selected-only \ |
1213 |
remove search set-selections selected-only \ |
| 1192 |
skip-same-version smallmem status unpack \ |
1214 |
skip-same-version smallmem status unpack \ |
| 1193 |
update-avail version vextract \ |
1215 |
update-avail version vextract \ |
| 1194 |
)//' \ |
1216 |
)//' \ |
| 1195 |
'n/{-l}/`dpkg -l|awk \{print\ \$2\}`/' \ |
1217 |
'n/{-l}/`dpkg -l|awk \{print\ \$2\}`/' \ |
| 1196 |
'n/*/f:*.deb'/ |
1218 |
'n/*/f:*.deb'/ |
| 1197 |
complete dpkg-deb 'c/--{build}=/d/' \ |
1219 |
complete dpkg-deb 'c/--{build}=/d/' \ |
| 1198 |
'c/--/(build contents info field control extract \ |
1220 |
'c/--/(build contents info field control extract \ |
| 1199 |
vextract fsys-tarfile help version \ |
1221 |
vextract fsys-tarfile help version \ |
| 1200 |
license)//' \ |
1222 |
license)//' \ |
| 1201 |
'n/*/f:*.deb/' |
1223 |
'n/*/f:*.deb/' |
| 1202 |
complete apt-get \ |
1224 |
complete apt-get \ |
| 1203 |
'c/--/(build config-file diff-only download-only \ |
1225 |
'c/--/(build config-file diff-only download-only \ |
| 1204 |
fix-broken fix-missing force-yes help ignore-hold no-download \ |
1226 |
fix-broken fix-missing force-yes help ignore-hold no-download \ |
| 1205 |
no-upgrade option print-uris purge reinstall quiet simulate \ |
1227 |
no-upgrade option print-uris purge reinstall quiet simulate \ |
| 1206 |
show-upgraded target-release tar-only version yes )/' \ |
1228 |
show-upgraded target-release tar-only version yes )/' \ |
| 1207 |
'c/-/(b c= d f h m o= q qq s t x y )/' \ |
1229 |
'c/-/(b c= d f h m o= q qq s t x y )/' \ |
| 1208 |
'n/{source,build-dep}/x:<pkgname>/' \ |
1230 |
'n/{source,build-dep}/x:<pkgname>/' \ |
| 1209 |
'n/{remove}/`dpkg -l|grep ^ii|awk \{print\ \$2\}`/' \ |
1231 |
'n/{remove}/`dpkg -l|grep ^ii|awk \{print\ \$2\}`/' \ |
| 1210 |
'n/{install}/`apt-cache pkgnames | sort`/' \ |
1232 |
'n/{install}/`apt-cache pkgnames | sort`/' \ |
| 1211 |
'C/*/(update upgrade dselect-upgrade source \ |
1233 |
'C/*/(update upgrade dselect-upgrade source \ |
| 1212 |
build-dep check clean autoclean install remove)/' |
1234 |
build-dep check clean autoclean install remove)/' |
| 1213 |
complete apt-cache \ |
1235 |
complete apt-cache \ |
| 1214 |
'c/--/(all-versions config-file generate full help important \ |
1236 |
'c/--/(all-versions config-file generate full help important \ |
| 1215 |
names-only option pkg-cache quiet recurse src-cache version )/' \ |
1237 |
names-only option pkg-cache quiet recurse src-cache version )/' \ |
| 1216 |
'c/-/(c= h i o= p= q s= v)/' \ |
1238 |
'c/-/(c= h i o= p= q s= v)/' \ |
| 1217 |
'n/{search}/x:<regex>/' \ |
1239 |
'n/{search}/x:<regex>/' \ |
| 1218 |
'n/{pkgnames,policy,show,showpkg,depends,dotty}/`apt-cache pkgnames | sort`/' \ |
1240 |
'n/{pkgnames,policy,show,showpkg,depends,dotty}/`apt-cache pkgnames | sort`/' \ |
| 1219 |
'C/*/(add gencaches showpkg stats dump dumpavail unmet show \ |
1241 |
'C/*/(add gencaches showpkg stats dump dumpavail unmet show \ |
| 1220 |
search depends pkgnames dotty policy )/' |
1242 |
search depends pkgnames dotty policy )/' |
| 1221 |
|
1243 |
|
| 1222 |
unset noglob |
1244 |
switch ( "${OSTYPE}" ) |
| 1223 |
unset _complete |
1245 |
case FreeBSD: |
| 1224 |
unset traditional_complete |
1246 |
set commands=() |
| 1225 |
endif |
1247 |
foreach p (fast force one quiet "") |
|
|
1248 |
foreach c (enabled poll rcvar reload restart start status stop) |
| 1249 |
set commands=($commands $p$c) |
| 1250 |
end |
| 1251 |
end |
| 1252 |
complete service \ |
| 1253 |
n/-R/n/ \ |
| 1254 |
n/-e/n/ \ |
| 1255 |
n/-l/n/ \ |
| 1256 |
n/-r/n/ \ |
| 1257 |
c/-/"(R e l r v)"/ \ |
| 1258 |
p/2/"($commands)"/ \ |
| 1259 |
p@1@'`service -l`'@ |
| 1260 |
unset commands c p |
| 1261 |
breaksw |
| 1262 |
case linux: |
| 1263 |
if ( -d /etc/init.d ) then |
| 1264 |
set rcdir=/etc/init.d/ |
| 1265 |
else |
| 1266 |
set rcdir=/etc/rc.d/ |
| 1267 |
endif |
| 1268 |
complete service \ |
| 1269 |
p/2/"(--full-restart force-reload reload restart start stop status)"/ \ |
| 1270 |
c/--/"(help status-all version)"/ \ |
| 1271 |
c/-/"(- h)"/ \ |
| 1272 |
p@1@F:$rcdir@ |
| 1273 |
unset rcdir |
| 1274 |
breaksw |
| 1275 |
endsw |
| 1226 |
|
1276 |
|
|
|
1277 |
if ( $?_unset_noglob ) unset noglob _unset_noglob |
| 1278 |
|
| 1227 |
end: |
1279 |
end: |
| 1228 |
onintr |
1280 |
unset _has_complete |
|
|
1281 |
onintr |