Quizzer
view release on metacpan or search on metacpan
exercises/compile-tcsh/tcsh-6.10.00/complete.tcsh view on Meta::CPAN
complete dd c/--/"(help version)"/ c/[io]f=/f/ \
c/conv=*,/"(ascii ebcdic ibm block unblock \
lcase notrunc ucase swab noerror sync)"/,\
c/conv=/"(ascii ebcdic ibm block unblock \
lcase notrunc ucase swab noerror sync)"/,\
c/*=/x:'<number>'/ \
n/*/"(if of conv ibs obs bs cbs files skip file seek count)"/=
complete nslookup p/1/x:'<host>'/ p/2/\$hosts/
complete ar c/[dmpqrtx]/"(c l o u v a b i)"/ p/1/"(d m p q r t x)"// \
p/2/f:*.a/ p/*/f:*.o/
# these should be merged with the MH completion hacks below - jgotts
complete {sprev,snext} \
c@+@F:$HOME/Mail/@
# these and interrupt handling from Jaap Vermeulen <jaap@sequent.com>
complete {rexec,rxexec,rxterm,rmterm} \
'p/1/$hosts/' 'c/-/(l L E)/' 'n/-l/u/' 'n/-L/f/' \
'n/-E/e/' 'n/*/c/'
complete kill 'c/-/S/' 'c/%/j/' \
'n/*/`ps -u $LOGNAME | awk '"'"'{print $1}'"'"'`/'
# these from Marc Horowitz <marc@cam.ov.com>
complete attach 'n/-mountpoint/d/' 'n/-m/d/' 'n/-type/(afs nfs rvd ufs)/' \
'n/-t/(afs nfs rvd ufs)/' 'n/-user/u/' 'n/-U/u/' \
'c/-/(verbose quiet force printpath lookup debug map \
nomap remap zephyr nozephyr readonly write \
mountpoint noexplicit explicit type mountoptions \
nosetuid setuid override skipfsck lock user host)/' \
'n/-e/f/' 'n/*/()/'
complete hesinfo 'p/1/u/' \
'p/2/(passwd group uid grplist pcap pobox cluster \
filsys sloc service)/'
# these from E. Jay Berkenbilt <ejb@ERA.COM>
# = isn't always followed by a filename or a path anymore - jgotts
complete ./configure 'c/--*=/f/' 'c/--{cache-file,prefix,exec-prefix,\
bindir,sbindir,libexecdir,datadir,\
sysconfdir,sharedstatedir,localstatedir,\
libdir,includedir,oldincludedir,infodir,\
mandir,srcdir}/(=)//' \
'c/--/(cache-file verbose prefix exec-prefix bindir \
sbindir libexecdir datadir sysconfdir \
sharedstatedir localstatedir libdir \
includedir oldincludedir infodir mandir \
srcdir)//'
complete gs 'c/-sDEVICE=/(x11 cdjmono cdj550 epson eps9high epsonc \
dfaxhigh dfaxlow laserjet ljet4 sparc pbm \
pbmraw pgm pgmraw ppm ppmraw bit)/' \
'c/-sOutputFile=/f/' 'c/-s/(DEVICE OutputFile)/=' \
'c/-d/(NODISPLAY NOPLATFONTS NOPAUSE)/' 'n/*/f/'
complete perl 'n/-S/c/'
complete printenv 'n/*/e/'
complete sccs p/1/"(admin cdc check clean comb deledit delget \
delta diffs edit enter fix get help info \
print prs prt rmdel sccsdiff tell unedit \
unget val what)"/
complete setenv 'p/1/e/' 'c/*:/f/'
# these and method of setting hosts from Kimmo Suominen <kim@tac.nyc.ny.us>
if ( -f $HOME/.mh_profile && -x "`which folders`" ) then
if ( ! $?FOLDERS ) setenv FOLDERS "`folders -fast -recurse`"
if ( ! $?MHA ) setenv MHA "`ali | sed -e '/^ /d' -e 's/:.*//'`"
set folders = ( $FOLDERS )
set mha = ( $MHA )
complete ali \
'c/-/(alias nolist list nonormalize normalize nouser user help)/' \
'n,-alias,f,'
complete anno \
'c/-/(component noinplace inplace nodate date text help)/' \
'c,+,$folders,' \
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
complete burst \
'c/-/(noinplace inplace noquiet quiet noverbose verbose help)/' \
'c,+,$folders,' \
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
complete comp \
'c/-/(draftfolder draftmessage nodraftfolder editor noedit file form nouse use whatnowproc nowhatnowproc help)/' \
'c,+,$folders,' \
'n,-whatnowproc,c,' \
'n,-file,f,'\
'n,-form,f,'\
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
complete dist \
'c/-/(noannotate annotate draftfolder draftmessage nodraftfolder editor noedit form noinplace inplace whatnowproc nowhatnowproc help)/' \
'c,+,$folders,' \
'n,-whatnowproc,c,' \
'n,-form,f,'\
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
complete folder \
'c/-/(all nofast fast noheader header nopack pack noverbose verbose norecurse recurse nototal total noprint print nolist list push pop help)/' \
'c,+,$folders,' \
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
complete folders \
'c/-/(all nofast fast noheader header nopack pack noverbose verbose norecurse recurse nototal total noprint print nolist list push pop help)/' \
'c,+,$folders,' \
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
complete forw \
'c/-/(noannotate annotate draftfolder draftmessage nodraftfolder editor noedit filter form noformat format noinplace inplace digest issue volume whatnowproc nowhatnowproc help)/' \
'c,+,$folders,' \
'n,-whatnowproc,c,' \
'n,-filter,f,'\
'n,-form,f,'\
'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
complete inc \
'c/-/(audit file noaudit nochangecur changecur file form format nosilent silent notruncate truncate width help)/' \
'c,+,$folders,' \
'n,-audit,f,'\
'n,-form,f,'
complete mark \
'c/-/(add delete list sequence nopublic public nozero zero help)/' \
'c,+,$folders,' \
exercises/compile-tcsh/tcsh-6.10.00/complete.tcsh view on Meta::CPAN
hushchecksums hushspecials install interpreter keep \
margins nogrey noinstall nomakepk noscan paper safer \
shrinkbuttonn thorough topmargin underlink version)/' \
'n/-paper/(a4 a4r a5 a5r)/' 'p/*/f:*.dvi/'
complete xlock 'c/-/(allowaccess allowroot debug description \
echokeys enablesaver grabmouse grabserver hide inroot \
install inwindow mono mousemotion nolock remote \
resetsaver sound timeelapsed use3d usefirst verbose \
wireframe background batchcount bg bitmap both3d \
count cycles delay delta3d display dpmsoff \
dpmsstandby dpmssuspend endCmd erasedelay erasemode \
erasetime fg font foreground geometry help \
icongeometry info invalid left3d lockdelay logoutCmd \
mailCmd mailIcon message messagefile messagefont \
messagesfile mode name ncolors nice nomailIcon none3d \
parent password planfont program resources right3d \
saturation size startCmd timeout username validate \
version visual)/' 'n/-mode/(ant atlantis ball bat \
blot bouboule bounce braid bubble bubble3d bug cage \
cartoon clock coral crystal daisy dclock decay deco \
demon dilemma discrete drift eyes fadeplot flag flame \
flow forest galaxy gears goop grav helix hop hyper \
ico ifs image invert julia kaleid kumppa lament laser \
life life1d life3d lightning lisa lissie loop lyapunov \
mandelbrot marquee matrix maze moebius morph3d \
mountain munch nose pacman penrose petal pipes puzzle \
pyro qix roll rotor rubik shape sierpinski slip sphere \
spiral spline sproingies stairs star starfish strange \
superquadrics swarm swirl tetris thornbird triangle \
tube turtle vines voters wator wire world worm xjack \
blank bomb random)/'
complete xfig 'c/-/(display)/' 'p/*/f:*.fig/'
complete wget c/--/"(accept= append-output= background cache= \
continue convert-links cut-dirs= debug \
delete-after directory-prefix= domains= \
dont-remove-listing dot-style= exclude-directories= \
exclude-domains= execute= follow-ftp \
force-directories force-html glob= header= help \
http-passwd= http-user= ignore-length \
include-directories= input-file= level= mirror \
no-clobber no-directories no-host-directories \
no-host-lookup no-parent non-verbose \
output-document= output-file= passive-ftp \
proxy-passwd= proxy-user= proxy= quiet quota= \
recursive reject= relative retr-symlinks save-headers \
server-response span-hosts spider timeout= \
timestamping tries= user-agent= verbose version wait=)"/
# these from Tom Warzeka <tom@waz.cc>
# you may need to set the following variables for your host
set _elispdir = /usr/local/share/emacs/20.7/lisp # GNU Emacs lisp directory
set _maildir = /var/spool/mail # Post Office: /var/spool/mail or /usr/mail
set _ypdir = /var/yp # directory where NIS (YP) maps are kept
set _domain = "`domainname`"
# this one works but is slow and doesn't descend into subdirectories
# complete cd C@[./\$~]*@d@ \
# p@1@'`\ls -1F . $cdpath | grep /\$ | sort -u`'@ n@*@n@
if ( -r /etc/shells ) then
complete setenv p@1@e@ n@DISPLAY@\$hosts@: n@SHELL@'`cat /etc/shells`'@
else
complete setenv p@1@e@ n@DISPLAY@\$hosts@:
endif
complete unsetenv n/*/e/
if (-r $HOME/.mailrc) then
complete mail c/-/"(e i f n s u v)"/ c/*@/\$hosts/ \
c@+@F:$HOME/Mail@ C@[./\$~]@f@ n/-s/x:'<subject>'/ \
n@-u@T:$_maildir@ n/-f/f/ \
n@*@'`sed -n s/alias//p $HOME/.mailrc | tr -s " " " " | cut -f 2`'@
else
complete mail c/-/"(e i f n s u v)"/ c/*@/\$hosts/ \
c@+@F:$HOME/Mail@ C@[./\$~]@f@ n/-s/x:'<subject>'/ \
n@-u@T:$_maildir@ n/-f/f/ n/*/u/
endif
complete man n@1@'`\ls -1 /usr/man/man1 | sed s%\\.1.\*\$%%`'@ \
n@2@'`\ls -1 /usr/man/man2 | sed s%\\.2.\*\$%%`'@ \
n@3@'`\ls -1 /usr/man/man3 | sed s%\\.3.\*\$%%`'@ \
n@4@'`\ls -1 /usr/man/man4 | sed s%\\.4.\*\$%%`'@ \
n@5@'`\ls -1 /usr/man/man5 | sed s%\\.5.\*\$%%`'@ \
n@6@'`\ls -1 /usr/man/man6 | sed s%\\.6.\*\$%%`'@ \
n@7@'`\ls -1 /usr/man/man7 | sed s%\\.7.\*\$%%`'@ \
n@8@'`\ls -1 /usr/man/man8 | sed s%\\.8.\*\$%%`'@ \
n@9@'`[ -r /usr/man/man9 ] && \ls -1 /usr/man/man9 | sed s%\\.9.\*\$%%`'@ \
n@0@'`[ -r /usr/man/man0 ] && \ls -1 /usr/man/man0 | sed s%\\.0.\*\$%%`'@ \
n@new@'`[ -r /usr/man/mann ] && \ls -1 /usr/man/mann | sed s%\\.n.\*\$%%`'@ \
n@old@'`[ -r /usr/man/mano ] && \ls -1 /usr/man/mano | sed s%\\.o.\*\$%%`'@ \
n@local@'`[ -r /usr/man/manl ] && \ls -1 /usr/man/manl | sed s%\\.l.\*\$%%`'@ \
n@public@'`[ -r /usr/man/manp ]&& \ls -1 /usr/man/manp | sed s%\\.p.\*\$%%`'@ \
c/-/"(- f k M P s t)"/ n/-f/c/ n/-k/x:'<keyword>'/ n/-[MP]/d/ \
N@-[MP]@'`\ls -1 $:-1/man? | sed s%\\..\*\$%%`'@ n/*/c/
complete ps c/-t/x:'<tty>'/ c/-/"(a c C e g k l S t u v w x)"/ \
n/-k/x:'<kernel>'/ N/-k/x:'<core_file>'/ n/*/x:'<PID>'/
complete compress c/-/"(c f v b)"/ n/-b/x:'<max_bits>'/ n/*/f:^*.Z/
complete uncompress c/-/"(c f v)"/ n/*/f:*.Z/
complete uuencode p/1/f/ p/2/x:'<decode_pathname>'/ n/*/n/
complete uudecode c/-/"(f)"/ n/-f/f:*.{uu,UU}/ p/1/f:*.{uu,UU}/ n/*/n/
complete xhost c/[+-]/\$hosts/ n/*/\$hosts/
# these conform to the latest GNU versions available at press time ...
# updates by John Gotts <jgotts@engin.umich.edu>
complete emacs c/-/"(batch d f funcall i insert kill l load \
no-init-file nw q t u user)"/ c/+/x:'<line_number>'/ \
n/-d/x:'<display>'/ n/-f/x:'<lisp_function>'/ n/-i/f/ \
n@-l@F:$_elispdir@ n/-t/x:'<terminal>'/ \
n/-u/u/ n/*/f:^*[\#~]/
complete gzcat c/--/"(force help license quiet version)"/ \
c/-/"(f h L q V -)"/ n/*/f:*.{gz,Z,z,zip}/
complete gzip c/--/"(stdout to-stdout decompress uncompress \
force help list license no-name quiet recurse \
suffix test verbose version fast best)"/ \
c/-/"(c d f h l L n q r S t v V 1 2 3 4 5 6 7 8 9 -)"/\
n/{-S,--suffix}/x:'<file_name_suffix>'/ \
n/{-d,--{de,un}compress}/f:*.{gz,Z,z,zip,taz,tgz}/ \
N/{-d,--{de,un}compress}/f:*.{gz,Z,z,zip,taz,tgz}/ \
n/*/f:^*.{gz,Z,z,zip,taz,tgz}/
complete {gunzip,ungzip} c/--/"(stdout to-stdout force help list license \
no-name quiet recurse suffix test verbose version)"/ \
( run in 1.679 second using v1.01-cache-2.11-cpan-a5162978ef8 )