summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/tcsh/files/csh.cshrc_new129
-rw-r--r--app-shells/tcsh/files/csh.login_new71
-rw-r--r--app-shells/tcsh/files/digest-tcsh-6.12-r11
-rw-r--r--app-shells/tcsh/files/tcsh-aliases96
-rw-r--r--app-shells/tcsh/files/tcsh-bindkey117
-rw-r--r--app-shells/tcsh/files/tcsh-complete978
-rw-r--r--app-shells/tcsh/files/tcsh-settings153
-rw-r--r--app-shells/tcsh/files/tcsh.config65
8 files changed, 1610 insertions, 0 deletions
diff --git a/app-shells/tcsh/files/csh.cshrc_new b/app-shells/tcsh/files/csh.cshrc_new
new file mode 100644
index 000000000000..044a5b75cee3
--- /dev/null
+++ b/app-shells/tcsh/files/csh.cshrc_new
@@ -0,0 +1,129 @@
+#############################################################################
+##
+## Gentoo's csh.cshrc
+##
+## Based on the TCSH package (http://tcshrc.sourceforge.net)
+##
+## .tcshrc 2Sep2001, Simos Xenitellis (simos@hellug.gr)
+##
+## 2003-01-13 -- Alain Penders (alain@gentoo.org)
+## Renamed to /etc/csh.cshrc, basic cleanup work.
+##
+## 2003-01-24 -- Alain Penders (alain@gentoo.org)
+## Improved config file handling.
+##
+onintr -
+##
+
+
+##
+## Start by unsetting all our variables. This is needed to prevent inheritance
+## from the shell that started us -- e.g. when performing a 'su'.
+##
+unsetenv TCSH_SHELL_CTRLD
+unsetenv TCSH_SHELL_SAFEHISTORY
+unsetenv TCSH_SHELL_AUTOLOGOUT
+unsetenv TCSH_SHELL_SAFETY
+unsetenv TCSH_SHELL_DOS
+unsetenv TCSH_SHELL_CDALIAS
+unsetenv TCSH_SHELL_COMPLETION
+
+
+##
+## Get our own settings. Make sure they exist in the user's directory.
+##
+if ( ! -e ~/.tcsh.config ) then
+ if ( -e /etc/skel/.tcsh.config ) then
+ echo ">>> Copying /etc/skel/.tcsh.config to your home directory ..."
+ cp /etc/skel/.tcsh.config ~/.tcsh.config
+ echo ">>> Please edit it to fine-tune the TCSH behaviour."
+ else
+ echo "### Missing .tcsh.config!"
+ endif
+endif
+if ( -e ~/.tcsh.config ) then
+ source ~/.tcsh.config
+endif
+
+
+##
+## Load the environment defaults.
+##
+if ( -r /etc/csh.env ) then
+ source /etc/csh.env
+endif
+
+
+##
+## Make sure our path includes the basic stuff for root and normal users.
+##
+if ($LOGNAME == "root") then
+ set -f path = ( $path /sbin )
+ set -f path = ( $path /usr/sbin )
+ set -f path = ( $path /usr/local/sbin )
+endif
+set -f path = ( $path /bin )
+set -f path = ( $path /usr/bin )
+set -f path = ( $path /usr/local/bin )
+set -f path = ( $path /opt/bin )
+
+
+##
+## Load our settings -- most are for interactive shells only, but not all.
+##
+if ( -e /etc/profile.d/tcsh-settings ) then
+ source /etc/profile.d/tcsh-settings
+endif
+
+
+##
+## Source extensions installed by ebuilds
+##
+if ( -d /etc/profile.d ) then
+ set _tmp=${?nonomatch}
+ set nonomatch
+ foreach _s ( /etc/profile.d/*.csh )
+ if ( -r $_s ) then
+ source $_s
+ endif
+ end
+ if ( ! ${_tmp} ) unset nonomatch
+ unset _tmp _s
+endif
+
+
+# Everything after this point is interactive shells only.
+if ( $?prompt == 0 ) goto end
+
+
+##
+## Load our aliases -- for interactive shells only
+##
+if ( -e /etc/profile.d/tcsh-aliases ) then
+ source /etc/profile.d/tcsh-aliases
+endif
+
+
+##
+## Load our key bindings -- for interactive shells only
+##
+if ( -e /etc/profile.d/tcsh-bindkey ) then
+ source /etc/profile.d/tcsh-bindkey
+endif
+
+
+##
+## Load our command completions -- for interactive shells only
+##
+if ( $?TCSH_SHELL_COMPLETION ) then
+ if ( -e /etc/profile.d/tcsh-complete ) then
+ source /etc/profile.d/tcsh-complete
+ endif
+endif
+
+
+end:
+##
+onintr
+##
+
diff --git a/app-shells/tcsh/files/csh.login_new b/app-shells/tcsh/files/csh.login_new
new file mode 100644
index 000000000000..58501398cec0
--- /dev/null
+++ b/app-shells/tcsh/files/csh.login_new
@@ -0,0 +1,71 @@
+#############################################################################
+##
+## Gentoo's csh.login
+##
+## 2003-01-13 -- Alain Penders (alain@gentoo.org)
+##
+## Initial version. Inspired by the Suse version.
+##
+
+
+##
+## Default terminal initialization
+##
+if ( -o /dev/$tty && ${?prompt} ) then
+ # Console
+ if ( ! ${?TERM} ) setenv TERM linux
+ if ( "$TERM" == "unknown" ) setenv TERM linux
+ # No tset available on SlackWare
+ if ( -x "`which stty`" ) stty sane cr0 pass8 dec
+ if ( -x "`which tset`" ) tset -I -Q
+ unsetenv TERMCAP
+ settc km yes
+endif
+
+##
+## Default UMASK
+##
+umask 022
+
+##
+## Set our SHELL variable.
+##
+setenv SHELL /bin/tcsh
+
+##
+## Setup a default MAIL variable
+##
+if ( -f /var/spool/mail/$USER ) then
+ setenv MAIL /var/spool/mail/$USER
+ set mail=$MAIL
+endif
+
+##
+## If we're root, report who's logging in and out.
+##
+if ( "$uid" == "0" ) then
+ set who=( "%n has %a %l from %M." )
+ set watch=( any any )
+endif
+
+##
+## Show the MOTD once the first time, and once after it has been changed.
+##
+## Note: if this is a SSH login, SSH will always show the MOTD, so we
+## skip it. Create ~/.hushlogin is you don't want SSH to show it.
+##
+if (-f /etc/motd ) then
+ if ( ! $?SSH_CLIENT ) then
+ cmp -s /etc/motd ~/.hushmotd
+ if ($status) then
+ tee ~/.hushmotd < /etc/motd
+ echo "((( MOTD shown only once, unless it is changed )))"
+ endif
+ endif
+endif
+
+##
+## Send us home.
+##
+cd
+
diff --git a/app-shells/tcsh/files/digest-tcsh-6.12-r1 b/app-shells/tcsh/files/digest-tcsh-6.12-r1
new file mode 100644
index 000000000000..7733a6633626
--- /dev/null
+++ b/app-shells/tcsh/files/digest-tcsh-6.12-r1
@@ -0,0 +1 @@
+MD5 dccf1e673103594546fe74c313932428 tcsh-6.12.00.tar.gz 824297
diff --git a/app-shells/tcsh/files/tcsh-aliases b/app-shells/tcsh/files/tcsh-aliases
new file mode 100644
index 000000000000..4891cc574aa1
--- /dev/null
+++ b/app-shells/tcsh/files/tcsh-aliases
@@ -0,0 +1,96 @@
+##############################################################################
+##
+## Gentoo's csh.cshrc
+##
+## Based on the TCSH package (http://tcshrc.sourceforge.net)
+##
+## .tcshrc.alias 2Sep2001, Simos Xenitellis (simos@hellug.gr)
+##
+## 2003-01-13 -- Alain Penders (alain@gentoo.org)
+## Renamed to /etc/tcsh/aliases, basic cleanup work, added features that
+## can be enabled/disabled from /etc/conf.d/tcsh and ~/.tcshconf.
+##
+
+set noglob
+
+##
+## Secure versions of cp, mv, and rm. Only used when TCSH_SHELL_SAFETY is set.
+##
+if ( $?TCSH_SHELL_SAFETY ) then
+ alias rm 'rm -i'
+ alias cp 'cp -i'
+ alias mv 'mv -i'
+endif
+
+##
+## Aliases for CPM/MSDOS-like behaviour. (Only if TCSH_SHELL_DOS is set.)
+##
+if ( $?TCSH_SHELL_DOS ) then
+ alias del 'rm -i'
+ alias cls 'clear'
+ # "-p" lets you create a path structure with one command, ex. mkdir -p /a/b/c
+ alias md 'mkdir -p'
+ alias rd 'rmdir'
+ alias dir 'ls --format=vertical'
+endif
+
+##
+## Colors for ls, etc.
+##
+if ( -x /bin/dircolors ) then
+ if ( -r $HOME/.dir_colors ) then
+ eval `dircolors -c $HOME/.dir_colors`
+ else if ( -r /etc/DIR_COLORS ) then
+ eval `dircolors -c /etc/DIR_COLORS`
+ endif
+endif
+alias d 'ls --color'
+alias ls 'ls --color=auto'
+alias l 'ls --color -aF'
+alias ll 'ls --color -alF'
+
+##
+## Alias vi to vim when appropriate.
+##
+if ( ( -e `where vim`) && ( ! -e `where vi`) ) then
+ alias vi 'vim'
+endif
+
+##
+## Some fancy aliases to make changing directory easier.
+## Only available when TCSH_SHELL_CDALIAS is set.
+##
+if ( $?TCSH_SHELL_CDALIAS ) then
+ # Shows current directory
+ alias . 'pwd'
+ # Goes back one directory
+ alias .. 'cd ..'
+ alias ../ 'cd ../'
+ # Goes to previous directory
+ alias - 'cd -'
+ # Goes to the root directory
+ alias / 'cd /'
+endif
+
+##
+## Standard aliases - for typos
+##
+## These are the most common typos made by users, even experienced ones.
+##
+alias maek 'make'
+alias alais 'alias'
+alias csl 'clear'
+alias sl 'ls --color'
+
+##
+## Aliases specific to TCSH
+##
+## What is the help command? Type "ls" and hit F1. Will show a help line.
+## From version tcshrc-1.x we use the man page facility as the help source.
+## Once you read the help, press "q" to quit and you can continue editing the
+## line.
+##
+#alias helpcommand whatis
+alias helpcommand man
+
+unset noglob
diff --git a/app-shells/tcsh/files/tcsh-bindkey b/app-shells/tcsh/files/tcsh-bindkey
new file mode 100644
index 000000000000..860718da11ed
--- /dev/null
+++ b/app-shells/tcsh/files/tcsh-bindkey
@@ -0,0 +1,117 @@
+#############################################################################
+##
+## Gentoo system tcsh scripts
+##
+## $Id: tcsh-bindkey,v 1.1 2003/01/25 19:59:15 alain Exp $
+##
+## Based on the TCSHRC package (http://tcshrc.sourceforge.net)
+##
+## .tcshrc.bindkey 2Sep2001, Simos Xenitellis (simos@hellug.gr)
+##
+## 2003-01-13 -- Alain Penders (alain@gentoo.org)
+## Renamed to /etc/profile.d/tcsh-bindkey
+## Made unnecessary KEY definitions optional.
+##
+
+# One can use the "bindkey" facility to redefine the meaning of
+# keys on the keyboard. Now you can eventually use those F*** keys.
+#
+
+# INSERT : toggles overwrite or insert mode.
+bindkey ^[[2~ overwrite-mode
+
+# DELETE : delete char at cursor position.
+bindkey ^[[3~ delete-char
+
+# HOME : go to the beginning of the line.
+bindkey ^[[1~ beginning-of-line
+
+# END : go to the end of the line.
+bindkey ^[[4~ end-of-line
+
+# PAGE UP : search in history backwards for line beginning as current.
+bindkey ^[[5~ history-search-backward
+
+# PAGE DOWN : search in history forwards for line beginning as current.
+bindkey ^[[6~ history-search-forward
+
+
+
+if ( $?TCSH_FKEYS ) then
+
+# ESC-left-arrow : go to beginning of left word.
+# The second version is used to fix a strange bug where the binding
+# stops working after some usage. Did not manage to recreate.
+bindkey ^[^[[D vi-word-back
+bindkey OD vi-word-back
+
+# ESC-right-arrow : go to beginning of right word.
+# The second version is used to fix a strange bug where the binding
+# stops working after some usage. Did not manage to recreate.
+bindkey ^[^[[C vi-word-fwd
+bindkey OC vi-word-fwd
+
+# F1 : help on command currently typed(if 'ls passwd', help on 'ls').
+# first: while in console mode, second: while in X
+bindkey ^[[[A run-help
+bindkey OP run-help
+
+# F2 : set the mark command to cursor position.
+# first: while in console mode, second: while in X
+bindkey ^[[[B set-mark-command
+bindkey OQ set-mark-command
+
+# F3 : move cursor to the marked position.
+# first: while in console mode, second: while in X
+bindkey ^[[[C exchange-point-and-mark
+bindkey OR exchange-point-and-mark
+
+# F4 : --empty--
+# first: while in console mode, second: while in X
+bindkey ^[[[D undefined-key
+bindkey OS undefined-key
+
+# F5 : check line for spelling and make changes.
+# first: while in console mode, second: while in X
+bindkey ^[[[E spell-line
+bindkey [15~ spell-line
+
+# F6 : check current word for spelling and make changes.
+# same in both console and X modes
+bindkey ^[[17~ spell-word
+
+# F7 : insert last item of previous command.
+bindkey ^[[18~ insert-last-word
+
+# F8 : search in history backwards for line beginning as current.
+bindkey ^[[19~ history-search-backward
+
+# F9 : clear screen.
+# You may be in the middle of a command when you use this.
+# Does not affect what you are writing at the moment.
+bindkey ^[[20~ clear-screen
+
+# F10 : do an 'ls -l'. (\16 is Ctrl-U on Linux(and Sun?))
+bindkey -s ^[[21~ "\16ls -l\n"
+
+# F11 : display load average and current process status.
+bindkey ^[[23~ "/usr/bin/uptime ; ps"
+
+# F12 : do a ala-csh completion.
+bindkey ^[[24~ complete-word-raw
+
+#######################################
+# Advanced settings
+
+# Thanks to Carlos Duarte <cgd@teleweb.pt>
+# Eazy edit of path, type Ctrl-X p
+bindkey -s '^Xp' '. `echo $path`^X*)^A^Dset path = ( '
+
+# Ctrl-X * Expand glob. example: ls *<^X*> will expand the line
+# default behaviour
+
+# Ctrl-X $ Expand variables. example: $TERM<^X$> with give vt100
+# default behaviour
+
+endif
+
diff --git a/app-shells/tcsh/files/tcsh-complete b/app-shells/tcsh/files/tcsh-complete
new file mode 100644
index 000000000000..8a2243877c0f
--- /dev/null
+++ b/app-shells/tcsh/files/tcsh-complete
@@ -0,0 +1,978 @@
+#############################################################################
+##
+## Gentoo system tcsh scripts
+##
+## $Id: tcsh-complete,v 1.1 2003/01/25 19:59:15 alain Exp $
+##
+## Based on the TCSH complete.tcsh script, with changed from the TCSHRC
+## package (http://tcshrc.sourceforge.net)
+##
+## Please do not change this file! Place your personal customizations in
+## ~/.tcshrc and system-wide customizations in /etc/profiles.d/local.csh
+##
+## 2003-01-13 -- Alain Penders (alain@gentoo.org)
+## Renamed to /etc/profile.d/tcsh-complete
+##
+
+if (! $?prompt) goto end
+
+if ($?tcsh) then
+ set _rev=${tcsh:r}
+ set _rev=${_rev:r}
+ if ($_rev < 6) goto end
+ unset _rev
+endif
+
+ set noglob
+ if ( ! $?hosts ) set hosts
+ foreach f ($HOME/.hosts $HOME/.tcshrc.hosts /etc/profile.d/complete.hosts $HOME/.rhosts /etc/hosts.equiv)
+ if ( -r $f ) then
+ set hosts = ($hosts `grep -v "+" $f | grep -E -v "^#" | tr -s " " " " | cut -f 1`)
+ endif
+ end
+ if ( -r $HOME/.netrc ) then
+ set f=`awk '/machine/ { print $2 }' < $HOME/.netrc` >& /dev/null
+ set hosts=($hosts $f)
+ endif
+ if ( -r $HOME/.ssh/known_hosts ) then
+ set f=`cat $HOME/.ssh/known_hosts | cut -f 1 -d \ ` >& /dev/null
+ set hosts=($hosts $f)
+ endif
+ unset f
+ if ( ! $?hosts ) then
+ set hosts=(hyperion.ee.cornell.edu phaeton.ee.cornell.edu \
+ guillemin.ee.cornell.edu vangogh.cs.berkeley.edu \
+ ftp.uu.net prep.ai.mit.edu export.lcs.mit.edu \
+ labrea.stanford.edu sumex-aim.stanford.edu \
+ tut.cis.ohio-state.edu)
+ endif
+
+ complete ywho n/*/\$hosts/ # argument from list in $hosts
+ complete rsh p/1/\$hosts/ c/-/"(l n)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/
+ complete ssh p/1/\$hosts/ c/-/"(l n)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/
+ complete xrsh p/1/\$hosts/ c/-/"(l 8 e)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/
+ complete rlogin p/1/\$hosts/ c/-/"(l 8 e)"/ n/-l/u/
+ complete telnet p/1/\$hosts/ p/2/x:'<port>'/ n/*/n/
+
+ complete cd p/1/d/ # Directories only
+ complete chdir p/1/d/
+ complete pushd p/1/d/
+ complete popd p/1/d/
+ complete pu p/1/d/
+ complete po p/1/d/
+ complete complete p/1/X/ # Completions only
+ complete uncomplete n/*/X/
+ complete exec p/1/c/ # Commands only
+ complete trace p/1/c/
+ complete strace p/1/c/
+ complete which n/*/c/
+ complete where n/*/c/
+ complete skill p/1/c/
+ complete dde p/1/c/
+ complete adb c/-I/d/ n/-/c/ N/-/"(core)"/ p/1/c/ p/2/"(core)"/
+ complete sdb p/1/c/
+ complete dbx c/-I/d/ n/-/c/ N/-/"(core)"/ p/1/c/ p/2/"(core)"/
+ complete xdb p/1/c/
+ complete gdb n/-d/d/ n/*/c/
+ complete ups p/1/c/
+ complete set 'c/*=/f/' 'p/1/s/=' 'n/=/f/'
+ complete unset n/*/s/
+ complete alias p/1/a/ # only aliases are valid
+ complete unalias n/*/a/
+ complete xdvi n/*/f:*.dvi/ # Only files that match *.dvi
+ complete dvips n/*/f:*.dvi/
+ complete tex n/*/f:*.tex/ # Only files that match *.tex
+ complete latex n/*/f:*.{tex,ltx}/
+ complete su c/--/"(login fast preserve-environment command shell \
+ help version)"/ c/-/"(f l m p c s -)"/ \
+ n/{-c,--command}/c/ \
+ n@{-s,--shell}@'`cat /etc/shells`'@ n/*/u/
+ complete cc c/-[IL]/d/ \
+ c@-l@'`\ls -1 /usr/lib/lib*.a | sed s%^.\*/lib%%\;s%\\.a\$%%`'@ \
+ c/-/"(o l c g L I D U)"/ n/*/f:*.[coasi]/
+ complete acc c/-[IL]/d/ \
+ c@-l@'`\ls -1 /usr/lang/SC1.0/lib*.a | sed s%^.\*/lib%%\;s%\\.a\$%%`'@ \
+ c/-/"(o l c g L I D U)"/ n/*/f:*.[coasi]/
+ complete gcc c/-[IL]/d/ \
+ c/-f/"(caller-saves cse-follow-jumps delayed-branch \
+ elide-constructors expensive-optimizations \
+ float-store force-addr force-mem inline \
+ inline-functions keep-inline-functions \
+ memoize-lookups no-default-inline \
+ no-defer-pop no-function-cse omit-frame-pointer \
+ rerun-cse-after-loop schedule-insns \
+ schedule-insns2 strength-reduce \
+ thread-jumps unroll-all-loops \
+ unroll-loops syntax-only all-virtual \
+ cond-mismatch dollars-in-identifiers \
+ enum-int-equiv no-asm no-builtin \
+ no-strict-prototype signed-bitfields \
+ signed-char this-is-variable unsigned-bitfields \
+ unsigned-char writable-strings call-saved-reg \
+ call-used-reg fixed-reg no-common \
+ no-gnu-binutils nonnull-objects \
+ pcc-struct-return pic PIC shared-data \
+ short-enums short-double volatile)"/ \
+ c/-W/"(all aggregate-return cast-align cast-qual \
+ comment conversion enum-clash error format \
+ id-clash-len implicit missing-prototypes \
+ no-parentheses pointer-arith return-type shadow \
+ strict-prototypes switch uninitialized unused \
+ write-strings)"/ \
+ c/-m/"(68000 68020 68881 bitfield fpa nobitfield rtd \
+ short c68000 c68020 soft-float g gnu unix fpu \
+ no-epilogue)"/ \
+ c/-d/"(D M N)"/ \
+ c/-/"(f W vspec v vpath ansi traditional \
+ traditional-cpp trigraphs pedantic x o l c g L \
+ I D U O O2 C E H B b V M MD MM i dynamic \
+ nodtdlib static nostdinc undef)"/ \
+ c/-l/f:*.a/ \
+ n/*/f:*.{c,C,cc,o,a,s,i}/
+ complete g++ n/*/f:*.{C,cc,o,s,i}/
+ complete CC n/*/f:*.{C,cc,cpp,o,s,i}/
+ complete rm c/--/"(directory force interactive verbose \
+ recursive help version)"/ c/-/"(d f i v r R -)"/ \
+ n/*/f:^*.{c,cc,C,h,in}/ # Protect precious files
+ complete vi n/*/f:^*.[oa]/
+ complete bindkey N/-a/b/ N/-c/c/ n/-[ascr]/'x:<key-sequence>'/ \
+ n/-[svedlr]/n/ c/-[vedl]/n/ c/-/"(a s k c v e d l r)"/\
+ n/-k/"(left right up down)"/ p/2-/b/ \
+ p/1/'x:<key-sequence or option>'/
+
+ complete find n/-fstype/"(nfs 4.2)"/ n/-name/f/ \
+ n/-type/"(c b d f p l s)"/ n/-user/u/ n/-group/g/ \
+ n/-exec/c/ n/-ok/c/ n/-cpio/f/ n/-ncpio/f/ n/-newer/f/ \
+ c/-/"(fstype name perm prune type user nouser \
+ group nogroup size inum atime mtime ctime exec \
+ ok print ls cpio ncpio newer xdev depth \
+ daystart follow maxdepth mindepth noleaf version \
+ anewer cnewer amin cmin mmin true false uid gid \
+ ilname iname ipath iregex links lname empty path \
+ regex used xtype fprint fprint0 fprintf \
+ print0 printf not a and o or)"/ \
+ n/*/d/
+
+ complete -%* c/%/j/ # fill in the jobs builtin
+ complete {fg,bg,stop} c/%/j/ p/1/"(%)"//
+
+ complete limit c/-/"(h)"/ n/*/l/
+ complete unlimit c/-/"(h)"/ n/*/l/
+
+ complete -co* p/0/"(compress)"/ # make compress completion
+ # not ambiguous
+## Added .gz extention.
+ complete zcat n/*/f:*.{Z,gz}/
+
+ complete finger c/*@/\$hosts/ n/*/u/@
+ complete ping p/1/\$hosts/
+ complete traceroute p/1/\$hosts/
+
+ complete {talk,ntalk,phone} p/1/'`users | tr " " "\012" | uniq`'/ \
+ n/*/\`who\ \|\ grep\ \$:1\ \|\ awk\ \'\{\ print\ \$2\ \}\'\`/
+
+ complete ftp c/-/"(d i g n v)"/ n/-/\$hosts/ p/1/\$hosts/ n/*/n/
+
+ # this one is simple...
+ #complete rcp c/*:/f/ C@[./\$~]*@f@ n/*/\$hosts/:
+ # From Michael Schroeder <mlschroe@immd4.informatik.uni-erlangen.de>
+ # This one will rsh to the file to fetch the list of files!
+ 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/:'
+
+ 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,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete mhmail \
+ 'c/-/(body cc from subject help)/' \
+ 'n,-cc,$mha,' \
+ 'n,-from,$mha,' \
+ 'n/*/$mha/'
+
+ complete mhpath \
+ 'c/-/(help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete msgchk \
+ 'c/-/(nodate date nonotify notify help)/'
+
+ complete msh \
+ 'c/-/(prompt noscan scan notopcur topcur help)/'
+
+ complete next \
+ 'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \
+ 'c,+,$folders,' \
+ 'n,-moreproc,c,' \
+ 'n,-showproc,c,' \
+ 'n,-form,f,'
+
+ complete packf \
+ 'c/-/(file help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete pick \
+ 'c/-/(and or not lbrace rbrace cc date from search subject to othercomponent after before datefield sequence nopublic public nozero zero nolist list help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete prev \
+ 'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \
+ 'c,+,$folders,' \
+ 'n,-moreproc,c,' \
+ 'n,-showproc,c,' \
+ 'n,-form,f,'
+
+ complete prompter \
+ 'c/-/(erase kill noprepend prepend norapid rapid nodoteof doteof help)/'
+
+ complete refile \
+ 'c/-/(draft nolink link nopreserve preserve src file help)/' \
+ 'c,+,$folders,' \
+ 'n,-file,f,'\
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete rmf \
+ 'c/-/(nointeractive interactive help)/' \
+ 'c,+,$folders,'
+
+ complete rmm \
+ 'c/-/(help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete scan \
+ 'c/-/(noclear clear form format noheader header width noreverse reverse file help)/' \
+ 'c,+,$folders,' \
+ 'n,-form,f,'\
+ 'n,-file,f,'\
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete send \
+ 'c/-/(alias draft draftfolder draftmessage nodraftfolder filter nofilter noformat format noforward forward nomsgid msgid nopush push noverbose verbose nowatch watch width help)/' \
+ 'n,-alias,f,'\
+ 'n,-filter,f,'
+
+ complete show \
+ 'c/-/(draft form moreproc nomoreproc length width showproc noshowproc header noheader help)/' \
+ 'c,+,$folders,' \
+ 'n,-moreproc,c,' \
+ 'n,-showproc,c,' \
+ 'n,-form,f,'\
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete sortm \
+ 'c/-/(datefield textfield notextfield limit nolimit noverbose verbose help)/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete vmh \
+ 'c/-/(prompt vmhproc novmhproc help)/' \
+ 'n,-vmhproc,c,'
+
+ complete whatnow \
+ 'c/-/(draftfolder draftmessage nodraftfolder editor noedit prompt help)/'
+
+ complete whom \
+ 'c/-/(alias nocheck check draft draftfolder draftmessage nodraftfolder help)/' \
+ 'n,-alias,f,'
+
+ complete plum \
+ 'c/-/()/' \
+ 'c,+,$folders,' \
+ 'n,*,`(mark | sed "s/:.*//";echo next cur prev first last)|tr " " "\12" | sort -u`,'
+
+ complete mail \
+ 'c/-/()/' \
+ 'n/*/$mha/'
+
+ endif
+
+ #from Dan Nicolaescu <dann@ics.uci.edu>
+ if ( $?MODULESHOME ) then
+ alias Compl_module 'find ${MODULEPATH:as/:/ /} -name .version -o -name .modulea\* -prune -o -print | sed `echo "-e s@${MODULEPATH:as%:%/\*@@g -e s@%}/\*@@g"`'
+ complete module 'p%1%(add load unload switch display avail use unuse update purge list clear help initadd initrm initswitch initlist initclear)%' \
+ 'n%{unl*,sw*,inits*}%`echo "$LOADEDMODULES:as/:/ /"`%' \
+ 'n%{lo*,di*,he*,inita*,initr*}%`eval Compl_module`%' \
+ 'N%{sw*,initsw*}%`eval Compl_module`%' 'C%-%(-append)%' 'n%{use,unu*,av*}%d%' 'n%-append%d%' \
+ 'C%[^-]*%`eval Compl_module`%'
+ endif
+
+ # from George Cox
+ complete acroread 'p/*/f:*.{pdf,PDF}/'
+ complete apachectl 'c/*/(start stop restart fullstatus status graceful \
+ configtest help)/'
+ complete appletviewer 'p/*/f:*.class/'
+ complete bison 'c/--/(debug defines file-prefix= fixed-output-files \
+ help name-prefix= no-lines no-parser output= \
+ token-table verbose version yacc)/' \
+ 'c/-/(b d h k l n o p t v y V)/' 'n/-b/f/' 'n/-o/f/' \
+ 'n/-p/f/'
+ complete bunzip2 'p/*/f:*.bz2/'
+ complete bzip2 'n/-9/f:^*.bz2/' 'n/-d/f:*.bz2/'
+ complete c++ 'p/*/f:*.{c++,cxx,c,cc,C,cpp}/'
+ complete co 'p@1@`\ls -1a RCS | sed -e "s/\(.*\),v/\1/"`@'
+ complete crontab 'n/-u/u/'
+ complete camcontrol 'p/1/(cmd debug defects devlist eject inquiry \
+ modepage negotiate periphlist rescan reset start \
+ stop tags tur)/'
+ complete ctlinnd 'p/1/(addhist allow begin cancel changegroup \
+ checkfile drop feedinfo flush flushlogs go hangup \
+ logmode mode name newgroup param pause readers refile \
+ reject reload renumber reserve rmgroup send shutdown \
+ kill throttle trace xabort xexec)/'
+ complete cvs 'c/--/(help help-commands help-synonyms)/' \
+ 'p/1/(add admin annotate checkout commit diff \
+ edit editors export history import init log login \
+ logout rdiff release remove rtag status tag unedit \
+ update watch watchers)/' 'n/-a/(edit unedit commit \
+ all none)/' 'n/watch/(on off add remove)/'
+ complete cxx 'p/*/f:*.{c++,cxx,c,cc,C,cpp}/'
+ complete detex 'p/*/f:*.tex/'
+ complete edquota 'n/*/u/'
+ complete exec 'p/1/c/'
+ complete ghostview 'p/*/f:*.ps/'
+ complete gv 'p/*/f:*.ps/'
+ complete ifconfig 'p@1@`ifconfig -l`@' 'n/*/(range phase link netmask \
+ mtu vlandev vlan metric mediaopt down delete \
+ broadcast arp debug)/'
+ complete imake 'c/-I/d/'
+ complete ipfw 'p/1/(flush add delete list show zero)/' \
+ 'n/add/(allow permit accept pass deny drop reject \
+ reset count skipto num divert port tee port)/'
+ complete javac 'p/*/f:*.java/'
+ complete ldif2ldbm 'n/-i/f:*.ldif/'
+ complete libtool 'c/--mode=/(compile execute finish install link \
+ uninstall)/' 'c/--/(config debug dry-run features \
+ finish help quiet silent version mode=)/'
+ complete libtoolize 'c/--/(automake copy debug dry-run force help ltdl \
+ ltdl-tar version)/'
+ complete links 'c/-/(assume-codepage async-dns download-dir \
+ format-cache-size ftp-proxy help http-proxy \
+ max-connections max-connections-to-host \
+ memory-cache-size receive-timeout retries \
+ unrestartable-receive-timeout version)/'
+ complete natd c/-/'(alias_address config deny_incoming dynamic \
+ inport interface log log_denied log_facility \
+ outport outport port pptpalias proxy_only \
+ proxy_rule redirect_address redirect_port \
+ reverse same_ports unregistered_only use_sockets \
+ verbose)'/ 'n@-interface@`ifconfig -l`@'
+ complete netstat 'n@-I@`ifconfig -l`@'
+ complete objdump 'c/--/(adjust-vma= all-headers architecture= \
+ archive-headers debugging demangle disassemble \
+ disassemble-all disassemble-zeroes dynamic-reloc \
+ dynamic-syms endian= file-headers full-contents \
+ headers help info line-numbers no-show-raw-insn \
+ prefix-addresses private-headers reloc section-headers \
+ section=source stabs start-address= stop-address= \
+ syms target= version wide)/' \
+ 'c/-/(a h i f C d D p r R t T x s S l w)/'
+ complete xmodmap 'c/-/(display help grammar verbose quiet n e pm pk \
+ pke pp)/'
+ complete lynx 'c/-/(accept_all_cookies anonymous assume_charset= \
+ assume_local_charset= assume_unrec_charset= auth= base \
+ book buried_news cache= case cfg= child cookie_file= \
+ cookies core crawl debug_partial display= dump editor= \
+ emacskeys enable_scrollback error_file= force_html \
+ force_secure forms_options from ftp get_data head help \
+ hiddenlinks= historical homepage= image_links index= \
+ ismap link= localhost mime_header minimal \
+ newschunksize= newsmaxchunk= nobrowse nocc nocolor \
+ nofilereferer nolist nolog nopause noprint noredir \
+ noreferer nostatus number_links partial partial_thres \
+ pauth= popup post_data preparsed print pseudo_inlines \
+ raw realm reload restrictions= resubmit_posts rlogin \
+ selective show_cursor soft_dquotes source stack_dump \
+ startfile_ok tagsoup telnet term= tlog trace traversal \
+ underscore useragent= validate verbose version vikeys \
+ width=)/' 'c/(http|ftp)/$URLS/' 'p/*/f:*.{html,htm,shtml}/'
+ complete gmake 'c/{--directory=,--include-dir=}/d/' \
+ 'c/{--assume-new,--assume-old,--makefile,--new-file,--what-if,--file}/f/' \
+ 'c/--/(assume-new= assume-old= debug directory= \
+ dry-run environment-overrides file= help \
+ ignore-errors include-dir= jobs[=N] just-print \
+ keep-going load-average[=N] makefile= max-load[=N] \
+ new-file= no-builtin-rules no-keep-going \
+ no-print-directory old-file= print-data-base \
+ print-directory question quiet recon silent stop \
+ touch version warn-undefined-variables what-if=)/' \
+ 'n@*@`cat -s GNUMakefile Makefile makefile |& sed -n -e "/No such file/d" -e "s/^\([A-Za-z0-9-]*\):.*/\1/p"`@' \
+ 'n/=/f/' 'n/-f/f/'
+ complete mixer p/1/'(vol bass treble synth pcm speaker mic cd mix \
+ pcm2 rec igain ogain line1 line2 line3)'/ \
+ p@2@'`mixer $:-1 | awk \{\ print\ \$7\ \}`'@
+
+ complete mpg123 'c/--/(2to1 4to1 8bit aggressive au audiodevice \
+ auth buffer cdr check doublespeed equalizer frames \
+ gain halfspeed headphones left lineout list mix mono \
+ proxy quiet random rate reopen resync right scale \
+ shuffle single0 single1 skip speaker stdout stereo \
+ test verbose wav)/' 'p/*/f:*.{mp2,mp3}/'
+ complete mysqladmin 'n/*/(create drop extended-status flush-hosts \
+ flush-logs flush-status flush-tables flush-privileges \
+ kill password ping processlist reload refresh \
+ shutdown status variables version)/'
+ complete mutt c@-f=@F:${HOME}/Mail/@ \
+ n/-a/f/ \
+ n/-F/f/ n/-H/f/ \
+ n/-s/x:'<subject line>'/ \
+ n/-e/x:'<command>'/ \
+ n@-b@'`cat ${HOME}/.muttrc-alias | awk '"'"'{print $2 }'"'"\`@ \
+ n@-c@'`cat ${HOME}/.muttrc-alias | awk '"'"'{print $2 }'"'"\`@ \
+ n@*@'`cat ${HOME}/.muttrc-alias | awk '"'"'{print $2 }'"'"\`@
+ complete ndc 'n/*/(status dumpdb reload stats trace notrace \
+ querylog start stop restart )/'
+ complete nm 'c/--/(debug-syms defined-only demangle dynamic \
+ extern-only format= help line-numbers no-demangle \
+ no-sort numeric-sort portability print-armap \
+ print-file-name reverse-sort size-sort undefined-only \
+ version)/' 'p/*/f:^*.{h,C,c,cc}/'
+ complete nmap 'n@-e@`ifconfig -l`@' 'p/*/$hostnames/'
+ complete perldoc 'n@*@`\ls -1 /usr/libdata/perl/5.*/pod | sed s%\\.pod.\*\$%%`@'
+ complete postfix 'n/*/(start stop reload abort flush check)/'
+ complete postmap 'n/1/(hash: regexp:)' 'c/hash:/f/' 'c/regexp:/f/'
+ complete rcsdiff 'p@1@`\ls -1a RCS | sed -e "s/\(.*\),v/\1/"`@'
+ complete X 'c/-/(I a ac allowMouseOpenFail allowNonLocalModInDev \
+ allowNonLocalXvidtune ar1 ar2 audit auth bestRefresh \
+ bgamma bpp broadcast bs c cc class co core deferglyphs \
+ disableModInDev disableVidMode displayID dpi dpms f fc \
+ flipPixels fn fp gamma ggamma help indirect kb keeptty \
+ ld lf logo ls nolisten string noloadxkb nolock nopn \
+ once p pn port probeonly query quiet r rgamma s \
+ showconfig sp su t terminate to tst v verbose version \
+ weight wm x xkbdb xkbmap)/'
+ complete users 'c/--/(help version)/' 'p/1/x:"<accounting_file>"/'
+ complete vidcontrol 'p/1/(132x25 132x30 132x43 132x50 132x60 40x25 80x25 \
+ 80x30 80x43 80x50 80x60 EGA_80x25 EGA_80x43 \
+ VESA_132x25 VESA_132x30 VESA_132x43 VESA_132x50 \
+ VESA_132x60 VESA_800x600 VGA_320x200 VGA_40x25 \
+ VGA_80x25 VGA_80x30 VGA_80x50 VGA_80x60)/'
+ complete vim 'n/*/f:^*.[oa]/'
+ complete where 'n/*/c/'
+ complete which 'n/*/c/'
+ complete wmsetbg 'c/-/(display D S a b c d e m p s t u w)/' \
+ 'c/--/(back-color center colors dither help match \
+ maxscale parse scale smooth tile update-domain \
+ update-wmaker version workspace)/'
+ complete xdb 'p/1/c/'
+ complete xdvi 'c/-/(allowshell debug display expert gamma hushchars \
+ 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>
+
+ ## ALAIN: These need to be removed from here!
+ # 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
+
+ # 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
+
+ if (! $?MANPATH) then
+ if (-r /usr/share/man) then
+ setenv MANPATH /usr/share/man:/usr/local/share/man
+ else
+ setenv MANPATH /usr/man:/usr/local/man
+ endif
+ endif
+
+ # use of $MANPATH from Dan Nicolaescu <dann@ics.uci.edu>
+ # use of 'find' adapted from Lubomir Host <host8@kepler.fmph.uniba.sk>
+ complete man \
+ 'n@1@`set q = "$MANPATH:as%:%/man1 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.1.\*\$%%`@'\
+ 'n@2@`set q = "$MANPATH:as%:%/man2 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.2.\*\$%%`@'\
+ 'n@3@`set q = "$MANPATH:as%:%/man3 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.3.\*\$%%`@'\
+ 'n@4@`set q = "$MANPATH:as%:%/man4 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.4.\*\$%%`@'\
+ 'n@5@`set q = "$MANPATH:as%:%/man5 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.5.\*\$%%`@'\
+ 'n@6@`set q = "$MANPATH:as%:%/man6 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.6.\*\$%%`@'\
+ 'n@7@`set q = "$MANPATH:as%:%/man7 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.7.\*\$%%`@'\
+ 'n@8@`set q = "$MANPATH:as%:%/man8 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.8.\*\$%%`@'\
+ 'n@9@`set q = "$MANPATH:as%:%/man9 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.9.\*\$%%`@'\
+ 'n@0@`set q = "$MANPATH:as%:%/man0 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.0.\*\$%%`@'\
+ 'n@n@`set q = "$MANPATH:as%:%/mann %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.n.\*\$%%`@'\
+ 'n@o@`set q = "$MANPATH:as%:%/mano %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.o.\*\$%%`@'\
+ 'n@l@`set q = "$MANPATH:as%:%/manl %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.l.\*\$%%`@'\
+ 'n@p@`set q = "$MANPATH:as%:%/manp %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.p.\*\$%%`@'\
+ c@-@"(- f k M P s S t)"@ n@-f@c@ n@-k@x:'<keyword>'@ n@-[MP]@d@ \
+ 'N@-[MP]@`\ls -1 $:-1/man? |& sed -n s%\\..\\+\$%%p`@' \
+ 'n@-[sS]@`\ls -1 $MANPATH:as%:% % |& sed -n s%^man%%p | sort -u`@'\
+ 'n@*@`find $MANPATH:as%:% % \( -type f -o -type l \) -printf "%f " |& sed -e "s%find: .*: No such file or directory%%" -e "s%\([^\.]\+\)\.\([^ ]*\) %\1 %g"`@'
+ #n@*@c@ # old way -- commands only
+
+ 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/
+ complete xpdf c/-/"(z g remote raise quit cmap rgb papercolor \
+ eucjp t1lib freetype ps paperw paperh level1 \
+ upw fullscreen cmd q v h help)"/ \
+ n/-z/x:'<zoom (-5 .. +5) or "page" or "width">'/ \
+ n/-g/x:'<geometry>'/ n/-remote/x:'<name>'/ \
+ n/-rgb/x:'<number>'/ n/-papercolor/x:'<color>'/ \
+ n/-{t1lib,freetype}/x:'<font_type>'/ \
+ n/-ps/x:'<PS_file>'/ n/-paperw/x:'<width>'/ \
+ n/-paperh/x:'<height>'/ n/-upw/x:'<password>'/ \
+ n/-/f:*.{pdf,PDF}/ \
+ N/-{z,g,remote,rgb,papercolor,t1lib,freetype,ps,paperw,paperh,upw}/f:*.{pdf,PDF}/ \
+ N/-/x:'<page>'/ p/1/f:*.{pdf,PDF}/ p/2/x:'<page>'/
+
+ # these conform to the latest GNU versions available at press time ...
+ # updates by John Gotts <jgotts@engin.umich.edu>
+
+ if (-X emacs) then
+ # TW note: if your version of GNU Emacs supports the "--version" option,
+ # uncomment this line and comment the next to automatically
+ # detect the version, else replace "21.2" with your version.
+ #set _emacs_ver=`emacs --version | sed -e 's%GNU Emacs %%' -e q | cut -d . -f1-2`
+ set _emacs_ver=21.2
+ set _emacs_dir=`which emacs | sed s%/bin/emacs%%`
+ complete emacs c/--/"(batch terminal display no-windows no-init-file \
+ user debug-init unibyte multibyte version help \
+ no-site-file funcall load eval insert kill)"/ \
+ c/-/"(t d nw q u f l -)"/ c/+/x:'<line_number>'/ \
+ n/{-t,--terminal}/x:'<terminal>'/ n/{-d,--display}/x:'<display>'/ \
+ n/{-u,--user}/u/ n/{-f,--funcall}/x:'<lisp_function>'/ \
+ n@{-l,--load}@F:$_emacs_dir/share/emacs/$_emacs_ver/lisp@ \
+ n/--eval/x:'<expression>'/ n/--insert/f/ n/*/f:^*[\#~]/
+ unset _emacs_ver _emacs_dir
+ endif
+
+ # if your "zcat" is the GNU version, change "gzcat" below to just "zcat"
+ complete zcat 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)"/ \
+ c/-/"(c f h l L n q r S t v V -)"/ \
+ n/{-S,--suffix}/x:'<file_name_suffix>'/ \
+ n/*/f:*.{gz,Z,z,zip,taz,tgz}/
+ complete zgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/-/"(A b B c C e f h i l n s v V w x)"/ \
+ p/1/x:'<limited_regular_expression>'/ N/-*e/f/ \
+ n/-*e/x:'<limited_regular_expression>'/ n/-*f/f/ n/*/f/
+ complete zegrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/-/"(A b B c C e f h i l n s v V w x)"/ \
+ p/1/x:'<full_regular_expression>'/ N/-*e/f/ \
+ n/-*e/x:'<full_regular_expression>'/ n/-*f/f/ n/*/f/
+ complete zfgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/-/"(A b B c C e f h i l n s v V w x)"/ \
+ p/1/x:'<fixed_string>'/ N/-*e/f/ \
+ n/-*e/x:'<fixed_string>'/ n/-*f/f/ n/*/f/
+ complete znew c/-/"(f t v 9 P K)"/ n/*/f:*.Z/
+ complete zmore n/*/f:*.{gz,Z,z,zip}/
+ complete zfile n/*/f:*.{gz,Z,z,zip,taz,tgz}/
+ complete ztouch n/*/f:*.{gz,Z,z,zip,taz,tgz}/
+ complete zforce n/*/f:^*.{gz,tgz}/
+
+ complete grep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/--/"(extended-regexp fixed-regexp basic-regexp \
+ regexp file ignore-case word-regexp line-regexp \
+ no-messages revert-match version help byte-offset \
+ line-number with-filename no-filename quiet silent \
+ text directories recursive files-without-match \
+ files-with-matches count before-context after-context \
+ context binary unix-byte-offsets)"/ \
+ 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 \
+ v w x)"/ \
+ p/1/x:'<limited_regular_expression>'/ N/-*e/f/ \
+ n/-*e/x:'<limited_regular_expression>'/ n/-*f/f/ n/*/f/
+ complete egrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/--/"(extended-regexp fixed-regexp basic-regexp \
+ regexp file ignore-case word-regexp line-regexp \
+ no-messages revert-match version help byte-offset \
+ line-number with-filename no-filename quiet silent \
+ text directories recursive files-without-match \
+ files-with-matches count before-context after-context \
+ context binary unix-byte-offsets)"/ \
+ 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 \
+ v w x)"/ \
+ p/1/x:'<full_regular_expression>'/ N/-*e/f/ \
+ n/-*e/x:'<full_regular_expression>'/ n/-*f/f/ n/*/f/
+ complete fgrep c/-*A/x:'<#_lines_after>'/ c/-*B/x:'<#_lines_before>'/\
+ c/--/"(extended-regexp fixed-regexp basic-regexp \
+ regexp file ignore-case word-regexp line-regexp \
+ no-messages revert-match version help byte-offset \
+ line-number with-filename no-filename quiet silent \
+ text directories recursive files-without-match \
+ files-with-matches count before-context after-context \
+ context binary unix-byte-offsets)"/ \
+ 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 \
+ v w x)"/ \
+ p/1/x:'<fixed_string>'/ N/-*e/f/ \
+ n/-*e/x:'<fixed_string>'/ n/-*f/f/ n/*/f/
+
+ complete sed c/--/"(quiet silent version help expression file)"/ \
+ c/-/"(n V e f -)"/ n/{-e,--expression}/x:'<script>'/ \
+ n/{-f,--file}/f:*.sed/ N/-{e,f,-{file,expression}}/f/ \
+ n/-/x:'<script>'/ N/-/f/ p/1/x:'<script>'/ p/2/f/
+
+ complete users c/--/"(help version)"/ p/1/x:'<accounting_file>'/
+ complete who c/--/"(heading idle count mesg message writable help \
+ version)"/ c/-/"(H i m q s T w u -)"/ \
+ p/1/x:'<accounting_file>'/ n/am/"(i)"/ n/are/"(you)"/
+
+ complete chown c/--/"(changes dereference no-dereference silent \
+ quiet reference recursive verbose help version)"/ \
+ c/-/"(c f h R v -)"/ C@[./\$~]@f@ c/*[.:]/g/ \
+ n/-/u/: p/1/u/: n/*/f/
+ complete chgrp c/--/"(changes no-dereference silent quiet reference \
+ recursive verbose help version)"/ \
+ c/-/"(c f h R v -)"/ n/-/g/ p/1/g/ n/*/f/
+ complete chmod c/--/"(changes silent quiet verbose reference \
+ recursive help version)"/ c/-/"(c f R v)"/
+ complete df c/--/"(all block-size human-readable si inodes \
+ kilobytes local megabytes no-sync portability sync \
+ type print-type exclude-type help version)"/ \
+ c/-/"(a H h i k l m P T t v x)"/
+ complete du c/--/"(all block-size bytes total dereference-args \
+ human-readable si kilobytes count-links dereference \
+ megabytes separate-dirs summarize one-file-system \
+ exclude-from exclude max-depth help version"/ \
+ c/-/"(a b c D H h k L l m S s X x)"/
+
+ complete cat c/--/"(number-nonblank number squeeze-blank show-all \
+ show-nonprinting show-ends show-tabs help version)"/ \
+ c/-/"(A b E e n s T t u v -)"/ n/*/f/
+ complete mv c/--/"(backup force interactive update verbose suffix \
+ version-control help version)"/ \
+ c/-/"(b f i S u V v -)"/ \
+ n/{-S,--suffix}/x:'<suffix>'/ \
+ n/{-V,--version-control}/"(t numbered nil existing \
+ never simple)"/ n/-/f/ N/-/d/ p/1/f/ p/2/d/ n/*/f/
+ complete cp c/--/"(archive backup no-dereference force \
+ interactive link preserve parents sparse recursive \
+ symbolic-link suffix update verbose version-control \
+ one-file-system help version)"/ \
+ c/-/"(a b d f i l P p R r S s u V v x -)"/ \
+ n/-*r/d/ n/{-S,--suffix}/x:'<suffix>'/ \
+ n/{-V,--version-control}/"(t numbered nil existing \
+ never simple)"/ n/-/f/ N/-/d/ p/1/f/ p/2/d/ n/*/f/
+ complete ln c/--/"(backup directory force no-dereference \
+ interactive symbolic suffix verbose version-control \
+ help version)"/ \
+ c/-/"(b d F f i n S s V v -)"/ \
+ n/{-S,--suffix}/x:'<suffix>'/ \
+ n/{-V,--version-control}/"(t numbered nil existing \
+ never simple)"/ n/-/f/ N/-/x:'<link_name>'/ \
+ p/1/f/ p/2/x:'<link_name>'/
+ complete touch c/--/"(date reference time help version)"/ \
+ c/-/"(a c d f m r t -)"/ \
+ n/{-d,--date}/x:'<date_string>'/ \
+ c/--time/"(access atime mtime modify use)"/ \
+ n/{-r,--file}/f/ n/-t/x:'<time_stamp>'/ n/*/f/
+ complete mkdir c/--/"(mode parents verbose help version)"/ \
+ c/-/"(p m -)"/ \
+ n/{-m,--mode}/x:'<mode>'/ n/*/d/
+ complete rmdir c/--/"(ignore-fail-on-non-empty parents verbose help \
+ version)"/ c/-/"(p -)"/ n/*/d/
+
+ complete tar c/-[Acru]*/"(b B C f F g G h i l L M N o P \
+ R S T v V w W X z Z)"/ \
+ c/-[dtx]*/"( B C f F g G i k K m M O p P \
+ R s S T v w x X z Z)"/ \
+ p/1/"(A c d r t u x -A -c -d -r -t -u -x \
+ --catenate --concatenate --create --diff --compare \
+ --delete --append --list --update --extract --get \
+ --help --version)"/ \
+ c/--/"(catenate concatenate create diff compare \
+ delete append list update extract get atime-preserve \
+ block-size read-full-blocks directory checkpoint file \
+ force-local info-script new-volume-script incremental \
+ listed-incremental dereference ignore-zeros \
+ ignore-failed-read keep-old-files starting-file \
+ one-file-system tape-length modification-time \
+ multi-volume after-date newer old-archive portability \
+ to-stdout same-permissions preserve-permissions \
+ absolute-paths preserve record-number remove-files \
+ same-order preserve-order same-owner sparse \
+ files-from null totals verbose label version \
+ interactive confirmation verify exclude exclude-from \
+ compress uncompress gzip ungzip use-compress-program \
+ block-compress help version)"/ \
+ c/-/"(b B C f F g G h i k K l L m M N o O p P R s S \
+ T v V w W X z Z 0 1 2 3 4 5 6 7 -)"/ \
+ C@[/dev]@f@ \
+ n/-c*f/x:'<new_tar_file, device_file, or "-">'/ \
+ n/{-[Adrtux]*f,--file}/f:*.{tar,taz,tgz}/ \
+ N/{-x*f,--file}/'`tar -tf $:-1`'/ \
+ n/--use-compress-program/c/ \
+ n/{-b,--block-size}/x:'<block_size>'/ \
+ n/{-V,--label}/x:'<volume_label>'/ \
+ n/{-N,--{after-date,newer}}/x:'<date>'/ \
+ n/{-L,--tape-length}/x:'<tape_length_in_kB>'/ \
+ n/{-C,--directory}/d/ \
+ N/{-C,--directory}/'`\ls $:-1`'/ \
+ n/-[0-7]/"(l m h)"/
+
+ # SVR4 filesystems
+ complete mount c/-/"(a F m o O p r v V)"/ n/-p/n/ n/-v/n/ \
+ n/-o/x:'<FSType_options>'/ \
+ n@-F@'`\ls -1 /usr/lib/fs`'@ \
+ n@*@'`grep -v "^#" /etc/vfstab | tr -s " " " " | cut -f 3`'@
+ complete umount c/-/"(a o V)"/ n/-o/x:'<FSType_options>'/ \
+ n/*/'`mount | cut -d " " -f 1`'/
+ complete mountall c/-/"(F l r)"/ n@-F@'`\ls -1 /usr/lib/fs`'@
+ complete umountall c/-/"(F h k l r s)"/ n@-F@'`\ls -1 /usr/lib/fs`'@ \
+ n/-h/'`df -k | cut -s -d ":" -f 1 | sort -u`'/
+ # BSD 4.3 filesystems
+ #complete mount c/-/"(a r t v)"/ n/-t/"(4.2 nfs)"/ \
+ # n@*@'`grep -v "^#" /etc/fstab | tr -s " " " " | cut -f 2`'@
+ #complete umount c/-/"(a h t v)"/ n/-t/"(4.2 nfs)"/ \
+ # n/-h/'`df | cut -s -d ":" -f 1 | sort -u`'/ \
+ # n/*/'`mount | cut -d " " -f 3`'/
+ # BSD 4.2 filesystems
+ #complete mount c/-/"(a r t v)"/ n/-t/"(ufs nfs)"/ \
+ # n@*@'`cut -d ":" -f 2 /etc/fstab`'@
+ #complete umount c/-/"(a h t v)"/ n/-t/"(ufs nfs)"/ \
+ # n/-h/'`df | cut -s -d ":" -f 1 | sort -u`'/ \
+ # n/*/'`mount | cut -d " " -f 3`'/
+
+ # these deal with NIS (formerly YP); if it's not running you don't need 'em
+ if (-X domainname) then
+ set _domain = "`domainname`"
+ if ("$_domain" != "" && "$_domain" != "noname") then
+ complete domainname p@1@D:$_ypdir@" " n@*@n@
+ complete ypcat c@-@"(d k t x)"@ n@-x@n@ n@-d@D:$_ypdir@" " \
+ N@-d@\`\\ls\ -1\ $_ypdir/\$:-1\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ \
+ n@*@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@
+ complete ypmatch c@-@"(d k t x)"@ n@-x@n@ n@-d@D:$_ypdir@" " \
+ N@-d@x:'<key ...>'@ n@-@x:'<key ...>'@ p@1@x:'<key ...>'@ \
+ n@*@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@
+ complete ypwhich c@-@"(d m t x V1 V2)"@ n@-x@n@ n@-d@D:$_ypdir@" " \
+ n@-m@\`\\ls\ -1\ $_ypdir/$_domain\ \|\ sed\ -n\ s%\\\\.pag\\\$%%p\`@ \
+ N@-m@n@ n@*@\$hosts@
+ endif
+ unset _domain
+ endif
+
+ # there's no need to clutter the user's shell with these
+ unset _elispdir _maildir _ypdir
+
+ complete make \
+ 'n/-f/f/' \
+ 'c/*=/f/' \
+ 'n@*@`cat -s GNUmakefile Makefile makefile |& sed -n -e "/No such file/d" -e "/^[^ #].*:/s/:.*//p"`@'
+
+ if ( -f /etc/printcap ) then
+ set printers=(`sed -n -e "/^[^ #].*:/s/:.*//p" /etc/printcap`)
+
+ complete lpr 'c/-P/$printers/'
+ complete lpq 'c/-P/$printers/'
+ complete lprm 'c/-P/$printers/'
+ complete lpquota 'p/1/(-Qprlogger)/' 'c/-P/$printers/'
+ complete dvips 'c/-P/$printers/' 'n/-o/f:*.{ps,PS}/' 'n/*/f:*.dvi/'
+ complete dvilj 'p/*/f:*.dvi/'
+ endif
+
+## BEGIN tcshrc additions
+ complete ggv n/*/f:*.{ps,eps}/
+ complete unzip p/1/f:*.{zip}/
+## END tcshrc completions
+
+ unset noglob
+
+end:
diff --git a/app-shells/tcsh/files/tcsh-settings b/app-shells/tcsh/files/tcsh-settings
new file mode 100644
index 000000000000..f55ea21d48fb
--- /dev/null
+++ b/app-shells/tcsh/files/tcsh-settings
@@ -0,0 +1,153 @@
+#############################################################################
+##
+## Gentoo system tcsh scripts
+##
+## $Id: tcsh-settings,v 1.1 2003/01/25 19:59:15 alain Exp $
+##
+## Based on the TCSHRC package (http://tcshrc.sourceforge.net)
+##
+## Please do not change this file! Place your personal customizations in
+## ~/.tcshrc and system-wide customizations in /etc/profiles.d/local.csh
+##
+## .tcshrc.set 2Sep2001, Simos Xenitellis (simos@hellug.gr)
+##
+## 2003-01-13 -- Alain Penders (alain@gentoo.org)
+## Renamed to /etc/profile.d/tcsh-settings
+## Major rework - settings are now closer to a normal default.
+##
+
+
+##
+## Setup some useful globals.
+##
+if ( ! $?HOST ) then
+ setenv HOST `hostname -s`
+endif
+if ( -r /etc/inputrc && ! $?INPUTRC ) then
+ setenv INPUTRC /etc/inputrc
+endif
+setenv COLORTERM 1
+
+
+##
+## Everything beyond this point is for interactive shells only!
+##
+if (! ${?prompt}) goto end
+
+
+##
+## Should CTRL-D exit the shell?
+##
+if ( $?TCSH_SHELL_CTRLD ) then
+ unset ignoreeof
+else
+ set ignoreeof
+endif
+
+##
+## Set a correct shell prompt
+##
+if ( -o /dev/$tty ) then
+ set prompt="%C2%# "
+else
+ set prompt="%B%m%b %C2%# "
+endif
+
+##
+## Handle history
+##
+set history=200
+set histdup=erase
+if ( $?TCSH_SHELL_SAVEHISTORY ) then
+ set savehist=( $history merge )
+else
+ unset savehist
+endif
+
+##
+## Various settings
+##
+
+# Switch to insert mode at the start of each line.
+set inputmode=insert
+
+# Do autolisting of commands while completing.
+set autolist
+
+# Do autocorrection while completing...
+set autocorrect
+
+# Use the history of commands to aid expansion.
+# Found in new versions of tcsh (at least 6.10)
+set autoexpand
+
+# Enable enhanded completion: 1) ignores case and 2) considers
+# periods, hyphens and underscores (`.', `-' and `_') to be
+# word separators and hyphens and underscores to be equivalent.
+set complete=enhance
+
+# Perform both completion and spelling correction of the command line.
+set correct=all
+
+# Configure the auto-logout feature.
+if ( $?TCSH_SHELL_AUTOLOGOUT ) then
+ set autologout=$TCSH_SHELL_AUTOLOGOUT
+else
+ unset autologout
+endif
+
+# How to handle symbolic links. Can be unset, or set to chase, ignore, or expand.
+set symlinks=ignore
+
+# After a 'Ctrl-Z', it lists all the jobs.
+set listjobs=long
+
+# Ask for confirmation when 'rm *'.
+set rmstar
+
+# Files that are to be ignored from completion.
+set fignore=(.o \~ .bck)
+
+# Ask before listing more than 20 rows of choices
+set listmaxrows=20
+
+# Show job completions when they're done
+set notify
+
+# Change the window title of X terminals
+if ( $?TERM ) then
+ switch ( $TERM )
+ case xterm*:
+ case rxvt:
+ case eterm:
+ alias cwdcmd 'echo -n "\033]0;${USER}@${HOST}: $cwd\007"'
+ breaksw
+ case screen:
+ alias cwdcmd 'echo -n "\033_${USER}@${HOST}: $cwd\033\\"'
+ breaksw
+ default:
+ alias cwdcmd 'echo "Directory: $cwd"'
+ breaksw
+ endsw
+ cd .
+endif
+
+# Enable editing in EUC encoding for the languages where this make sense:
+# (From SuSE's csh.cshrc)
+if ( ${?LANG} ) then
+ switch ( ${LANG:r} )
+ case ja*:
+ set dspmbyte=euc
+ breaksw
+ case ko*:
+ set dspmbyte=euc
+ breaksw
+ case zh_TW*:
+ set dspmbyte=big5
+ breaksw
+ default:
+ breaksw
+ endsw
+endif
+
+end:
diff --git a/app-shells/tcsh/files/tcsh.config b/app-shells/tcsh/files/tcsh.config
new file mode 100644
index 000000000000..e918dbabfda7
--- /dev/null
+++ b/app-shells/tcsh/files/tcsh.config
@@ -0,0 +1,65 @@
+##
+## TCSH Configuration
+##
+## The setting in this file influence the behaviour and configuration
+## of the base tcsh scripts.
+##
+## 2003-01-14 -- Alain Penders (alain@gentoo.org)
+## Initial version
+##
+
+#
+# Will pressing CTRL-D exit the shell?
+#
+# Value: set to enable CTRLD, unset to disable. (Default: enabled)
+#
+setenv TCSH_SHELL_CTRLD 1
+
+#
+# Will the history be saved for the next session when the shell is closed?
+#
+# Value: set to enable saving the history, unset to disable. (Default: enabled)
+#
+setenv TCSH_SHELL_SAVEHISTORY 1
+
+#
+# Auto-logout after a certain number of minutes?
+#
+# Value: unset to disable, set to the number of minutes to enable. (Default: disabled)
+#
+#setenv TCSH_SHELL_AUTOLOGOUT 15
+
+#
+# Default rm, mv, and cp to safe versions (ask before overwriting or deleting a file)?
+#
+# Value: set to enable, unset to disable. (Default: set to protect new users)
+#
+setenv TCSH_SHELL_SAFETY 1
+
+#
+# Add MSDOS/CPM command aliases (del, cls, md, rd, dir)?
+#
+# Value: set to enable, unset to disable. (Default: disabled)
+#
+#setenv TCSH_SHELL_DOS 1
+
+#
+# Add CD shortcut aliases?
+#
+# These include:
+# . -> pwd
+# .. -> cd ..
+# ../ -> cd ../
+# - -> cd -
+# / -> cd /
+#
+# Value: set to enable, unset to disable. (Default: disabled)
+#
+#setenv TCSH_SHELL_CDALIAS 1
+
+#
+# Enable intelligent command line completion (by pressing TAB)?
+#
+# Value: set to enable, unset to disable. (Default: enabled)
+#
+setenv TCSH_SHELL_COMPLETION 1