...
 
Commits (5)

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

Makefile
META-FAQ
config.cache
config.h
config.h.in
config.log
config.modules
config.modules.sh
config.status
configure
cscope.out
stamp-h
stamp-h.in
autom4te.cache
*.swp
DISTFILES_SRC='
.cvsignore .distfiles .gitignore .preconfig Makefile.in
ChangeLog
FEATURES INSTALL LICENCE MACHINES META-FAQ NEWS README
aclocal.m4 aczsh.m4 configure.ac
configure config.h.in stamp-h.in
config.guess config.sub install-sh mkinstalldirs
'
Makefile
tags
TAGS
*.o
*.o.c
*.a
*.so
*.dll
*~
.*.sw?
\#*
/META-FAQ
/config.cache
/config.h
/config.h.in
/config.log
/config.modules
/config.modules.sh
/config.status
/config.status.lineno
/configure
/cscope.out
/stamp-h
/stamp-h.in
/autom4te.cache
Config/defs.mk
Doc/version.yo
Doc/zsh*.1
Doc/zsh.texi
Doc/zsh.info*
Doc/*.html
Doc/zsh.aux
Doc/zsh.toc
Doc/zsh.cp
Doc/zsh.cps
Doc/zsh.fn
Doc/zsh.fns
Doc/zsh.ky
Doc/zsh.kys
Doc/zsh.pg
Doc/zsh.pgs
Doc/zsh.vr
Doc/zsh.vrs
Doc/zsh.log
Doc/zsh.dvi
Doc/zsh.tp
Doc/zsh.tps
Doc/zsh.idx
Doc/zsh_*.ps
Doc/infodir
Doc/zsh.pdf
Doc/zsh_a4.pdf
Doc/zsh_us.pdf
Doc/Zsh/modlist.yo
Doc/Zsh/modmenu.yo
Doc/Zsh/manmodmenu.yo
Etc/FAQ
Etc/FAQ.html
Src/*.epro
Src/*.export
Src/*.mdh
Src/*.mdh.tmp
Src/*.mdhi
Src/*.mdhs
Src/*.syms
Src/Makemod.in
Src/Makemod
Src/[_a-zA-Z0-9]*.pro
Src/ansi2knr
Src/bltinmods.list
Src/cscope.out
Src/libzsh.so*
Src/modules-bltin
Src/modules.index
Src/modules.index.tmp
Src/modules.stamp
Src/patchlevel.h
Src/sigcount.h
Src/signames.c
Src/signames2.c
Src/stamp-modobjs
Src/stamp-modobjs.tmp
Src/tags
Src/TAGS
Src/version.h
Src/zsh
Src/zshcurses.h
Src/zshpaths.h
Src/zshterm.h
Src/zshxmods.h
Src/Builtins/Makefile.in
Src/Builtins/*.export
Src/Builtins/so_locations
Src/Builtins/*.pro
Src/Builtins/*.epro
Src/Builtins/*.syms
Src/Builtins/*.mdh
Src/Builtins/*.mdhi
Src/Builtins/*.mdhs
Src/Builtins/*.mdh.tmp
Src/Builtins/rlimits.h
Src/Modules/Makefile.in
Src/Modules/*.export
Src/Modules/so_locations
Src/Modules/*.pro
Src/Modules/*.epro
Src/Modules/*.syms
Src/Modules/*.mdh
Src/Modules/*.mdhi
Src/Modules/*.mdhs
Src/Modules/*.mdh.tmp
Src/Modules/errnames.c
Src/Modules/errcount.h
Src/Modules/curses_keys.h
Src/Zle/Makefile.in
Src/Zle/*.export
Src/Zle/so_locations
Src/Zle/*.pro
Src/Zle/*.epro
Src/Zle/*.syms
Src/Zle/*.mdh
Src/Zle/*.mdhi
Src/Zle/*.mdhs
Src/Zle/*.mdh.tmp
Src/Zle/thingies.list
Src/Zle/widgets.list
Src/Zle/zle_things.h
Src/Zle/zle_widget.h
Test/*.tmp
#! /bin/sh
set -e
autoconf
autoheader
echo > stamp-h.in
This diff is collapsed.
DISTFILES_SRC='
.distfiles
.cvsignore README compaudit compdump compinit compinstall
bashcompinit
'
DISTFILES_SRC='
.distfiles
'
DISTFILES_SRC='
.distfiles
_floppy _lscfg _lsdev _lslv _lspv _lsvg _smit
'
#compdef dosread dosdel
local expl
_wanted floppyfiles expl 'file on floppy' compadd - ${$(dosdir)[1,-5]:l}
#compdef lscfg
local state line expl curcontext="$curcontext" disp list devs sep
_arguments -C -s \
'-l[display device information for named device]:device:->device' \
'-v[display vital product data for physical devices]' && return 0
if [[ "$state" = device ]]; then
devs=( ${${${${(f)"$(lscfg)"}[6,-1]:# *}##??}/ ##[^ ]# #/:} )
if zstyle -T ":completion:${curcontext}:devices" verbose; then
zstyle -s ":completion:${curcontext}:devices" list-separator sep || sep=--
zformat -a list " $sep " "$devs[@]"
disp=(-ld list)
else
disp=()
fi
_wanted devices expl 'device' compadd "$disp[@]" - "${devs[@]%%:*}"
return
fi
return 1
#compdef lsdev
local curcontext="${curcontext}" state line expl
_arguments -C \
'(-P)-C[list info about device in customized devices object class]' \
'(-C -l)-P[list info about device in predefined object class]' \
'-c[specify a device class]:device class:->classes' \
'-f[read flags from file]:file:_files' \
'-F[specify output format]:format:->columnnames' \
'-H[display headers above columns]' \
'-h[display command usage]' \
'(-P)-l[specify device logical name]:device logical name' \
'-r[display set of values in a column]:column name:->columnnames' \
'(-P)-S[specify a device state]:device state:(Available Defined Stopped)' \
'-s[specify a device subclass]:device subclass:->subclasses' \
'-t[specify a device type name]:device type name:->devtypes' && return 0
case $state in
classes)
_wanted devclasses expl 'device class name' \
compadd - $(lsdev ${words[(r)-[CP]]:--P} -r class)
;;
subclasses)
_wanted devsubclasses expl 'device subclass name' \
compadd - $(lsdev ${words[(r)-[CP]]:--P} -r subclass)
;;
devtypes)
_wanted devtypes expl 'device type name' \
compadd - $(lsdev ${words[(r)-[CP]]:--P} -r type)
;;
columnnames)
[[ $words[CURRENT-1] = -F ]] && compset -P '*[^a-zA-Z]'
_wanted devcolumnnames expl 'column name' \
compadd - ${(s: :)words[(r)-C]:+name status location} \
class subclass description type
;;
esac
#compdef lslv
_arguments -C -s \
'(-l -m)-p[display logical volume allocation map for the physical volume]:pv:_physical_volumes' \
'(-p)-l[list physical volumes in logical volume]' \
'(-p)-m[list partition numbers]' \
'-n[accesses information from the descriptor area of physical volume]:pv:_physical_volumes' \
'1:lv: _logical_volumes'
#compdef lspv
_arguments -C -s \
'(-p -M)-l[list logical volumes on physical volume]' \
'(-l -M)-p[list partitions on physical volume]' \
'(-l -p)-M[list mapping of physical and logical partition numbers]' \
'-n[specify physical volume to access variable descriptor from]:physical volume:_physical_volumes' \
'-v[specify volume group id to access info based on]:volume group id' \
'1:physical volume:_physical_volumes'
#compdef lsvg
_arguments -C -s \
'(-i -l -M -p)-o[lists only active volume groups]' \
'(-i -l -M -p)-n[specify physical volume to access variable descriptor from]:physical volume:_physical_volumes' \
'(-o -n)-i[reads volume group names from standard input]' \
'(-o -n -M -p)-l[list logical volumes in volume group]' \
'(-o -n -l -p)-M[list mapping of physical and logical partition numbers]' \
'(-o -n -l -M)-p[list physical volumes used by volume group]' \
'*:volume group:_volume_groups'
#compdef smit smitty
local state line expl curcontext="$curcontext"
_arguments -C \
'-s[specify smit.script file]:smit.script file:_files' \
'-l[specify smit.log file]:smit.log file:_files' \
'-C[use curses interface]' \
'-D[debug mode]' \
'-d[FastPath is dialogue screen]' \
'-f[allow redirection of stdin and stdout]' \
'-h[display help/usage message]' \
'-M[start smit in windows mode]' \
'-m[FastPath is menu screen]' \
'-n[FastPath is selector screen]' \
'-o[alternate SMIT/ODM database]' \
'-t[generate trace information]' \
'-v[verbose]' \
'-x[do not run any execute commands]' \
'-X[do not run any commands]' \
'1:fast path:->fastpath'
[[ "$state" = fastpath ]] && (( $+commands[odmget] )) &&
_wanted fastpaths expl 'fast path' compadd \
$(odmget sm_cmd_hdr sm_name_hdr|sed -n 's/^ id = \"\(.*\)\"/\1/p')
DISTFILES_SRC='
.distfiles
_logical_volumes _object_classes _physical_volumes _volume_groups
'
#autoload
local expl list names disp sep
list=( $(lsvg -l $(lsvg)|sed -e '2d'|awk '/[^:]* / {if ( $7 != "N/A" ) print $1 ":" $7; else print $1}' ) )
names=(${list%%:*})
if zstyle -T ":completion:${curcontext}:" verbose; then
zstyle -s ":completion:${curcontext}:" list-separator sep || sep=--
zformat -a list " $sep " $list
disp=(-d list)
else
disp=()
fi
_wanted logicalvolumes expl 'logical volume' \
compadd "$disp[@]" "$@" - "$names[@]"
#compdef odmget odmshow odme
local expl
_wanted objectclasses expl 'object class' \
_files -W ${ODMDIR:-/etc/objrepos} -g '^*.vc(-.)' "$@" -
#autoload
local expl
_wanted physicalvolumes expl 'physical volume' \
compadd "$@" - $(lsdev -C -c disk -S a -F name)
#autoload
local expl
_wanted volumegroups expl 'volume group' compadd "$@" - $(lsvg)
DISTFILES_SRC='
.distfiles
'
DISTFILES_SRC='
.distfiles
_bsd_pkg
_chflags
_csup
_cvsup
_fetch
_freebsd-update
_fstat
_kld
_pfctl
_portaudit
_portlint
_portmaster
_portsnap
_powerd
_procstat
'
#compdef pkg_add pkg_create pkg_delete pkg_info
(( $+functions[_bsd_pkg_pkgfiles] )) ||
_bsd_pkg_pkgfiles() {
local ret=1 paths portsdir pkgsdir
case $OSTYPE in
netbsd*)
portsdir=/usr/pkgsrc
;;
*)
portsdir=${PORTSDIR:-/usr/ports}
;;
esac
pkgsdir=${PACKAGES:-$portsdir/packages}/All
paths=( "${(@)${(@s.:.)PKG_PATH}:#}" )
_files "$@" -g '*.t[bg]z(-.)' && ret=0
(( $#path )) && _files "$@" -W paths -g '*.t[bg]z(-.)' && ret=0
compadd "$@" - $pkgsdir/*.t[bg]z(-.) && ret=0
return ret
}
(( $+functions[_bsd_pkg_pkgs] )) ||
_bsd_pkg_pkgs() {
compadd "$@" - ${PKG_DBDIR:-/var/db/pkg}/*(/:t)
}
(( $+functions[_bsd_pkg_pkgs_and_files] )) ||
_bsd_pkg_pkgs_and_files() {
local ret=1
if (( $words[(I)-*F*] )); then
_files "$@" && ret=0
else
_bsd_pkg_pkgs "$@" && ret=0
fi
return ret
}
_bsd_pkg() {
local flags
case "$service" in
pkg_add)
flags=(
'-f[force installation]'
'-I[don'\''t execute installation scripts]'
'-M[run in master mode]'
'-n[don'\''t really install packages]'
'-p[specify prefix]:prefix directory:_files -/'
'-R[don'\''t record]'
'-S[run in slave mode]'
'-t[specify mktemp template]:mktemp template:_files -/'
'-v[be verbose]'
)
case "$OSTYPE" in
freebsd*)
flags=(
$flags[@]
'-r[fetch from remote site]'
)
;;
netbsd*)
flags=(
$flags[@]
'-u[update]'
'-V[show version and exit]'
)
;;
esac
_arguments -s \
$flags[@] \
'*:package to install:_bsd_pkg_pkgfiles'
;;
pkg_create)
case "$OSTYPE" in
freebsd*)
flags=(
'-f[specify plist file]:plist file:_files'
'(-b)-c[specify comment file]:comment file:_files'
'(-b)-d[specify descr file]:descr file:_files'
'-Y[assume YES for any questions asked]'
'-N[assume NO for any questions asked]'
'(-b)-O[packing list only mode]'
'-v[be verbose]'
'-h[force tar to follow symlinks]'
'(-b)-i[specify pre-install script]:pre-install script:_files'
'(-b)-I[specify post-install script]:post-install script:_files'
'(-b)-P[specify initial dependencies]:dependencies:_bsd_pkg_pkgs'
'(-b)-p[specify prefix]:prefix directory:_files -/'
'(-b)-k[specify deinstall script]:deinstall script:_files'
'(-b)-K[specify post-deinstall script]:post-deinstall script:_files'
'(-b)-r[specify req script]:req script:_files'
'(-b)-s[specify source directory]:source directory:_files -/'
'(-b)-t[specify mktemp template]:mktemp template:_files'
'(-b)-X[specify exclude file]:exclude file for tar:_files'
'(-b)-D[specify message file]:message file:_files'
'(-b)-m[specify mtree file]:mtree file:_files'
'(-b)-o[specify origin]:origin:_files -W ${PORTSDIR\:-/usr/ports} -/'
'-j[use bzip2]'
'-z[use gzip]'
'(-c -d -O -i -I -P -p -k -K -r -s -t -X -D -m -o)-b[specify pkgname]:pkgname:_bsd_pkg_pkgs'
'*:package file name:_files'
)
;;
netbsd*)
# NetBSD users, improve me!
flags=(
'*:package name:_bsd_pkg_pkgs'
)
;;
esac
_arguments -s \
$flags[@]
;;
pkg_delete)
flags=(
'-D[don'\''t execute deinstallation scripts]'
'-d[remove empty directories]'
'-f[force deinstallation]'
'-n[don'\''t really deinstall packages]'
'-p[specify prefix]:prefix directory:_files -/'
'-v[be verbose]'
)
case "$OSTYPE" in
freebsd*)
flags=(
$flags[@]
'(:)-a[delete all installed packages]'
'-G[do not expand glob patterns]'
'-i[be interactive]'
'-r[delete recursively]'
'-x[use regular expression]'
)
;;
netbsd*)
flags=(
$flags[@]
'(:)-a[delete all installed packages]'
'-F[specify each package by an installed file]'
'-i[be interactive]'
'-O[only delete the package'\''s entries]'
'-R[delete upward recursively]'
'-r[delete recursively]'
'-V[show version and exit]'
)
;;
esac
_arguments -s \
$flags[@] \
'(-a)*:package name:_bsd_pkg_pkgs_and_files'
;;
pkg_info)
flags=(
'(:)-a[show all installed packages]'
'-c[show comment fields]'
'-D[show install-message files]'
'-d[show long descriptions]'
'-e[test if package is installed]:package name:_bsd_pkg_pkgs'
'-f[show packing list instructions]'
'-I[show index lines]'
'-i[show install scripts]'
'-k[show deinstall scripts]'
'-L[show full pathnames of files]'
'-l[specify prefix string]:prefix string:'
'-m[show mtree files]'
'-p[show installation prefixes]'
'-q[be quiet]'
'-R[show list list of installed requiring packages]'
'-r[show requirements scripts]'
'-v[be verbose]'
)
case "$OSTYPE" in
freebsd*)
flags=(
$flags[@]
'-G[do not expand glob patterns]'
'-g[show files that'\''s modified]'
'-o[show origin]'
'-s[show total size occupied by each package]'
'-t[specify mktemp template]:mktemp template:_files -/'
'*-W[show which package the file belongs to]:file:_files'
'-x[use regular expression]'
)
;;
netbsd*)
flags=(
$flags[@]
'-B[show build information]'
'-b[show RCS Id strings]'
'-F[specify each package by an installed file]'
'-S[show total size occupied by each package and its dependents]'
'-s[show total size occupied by each package]'
'-V[show version and exit]'
)
;;
esac
_arguments -s \
$flags[@] \
'(-a)*:package name:_bsd_pkg_pkgs_and_files'
;;
esac
}
_bsd_pkg "$@"
#compdef chflags
local flags own='-g *(-u$EUID)'
flags=(
'(noopaque)opaque[set the opaque flag]'
'(opaque)noopaque[unset the opaque flag]'
'(dump)nodump[set the nodump flag]'
'(nodump)dump[unset the nodump flag]'
'(nouappnd)uappnd[set the user append-only flag]'
'(uappnd)nouappnd[unset the user append-only flag]'
'(nouchg)uchg[set the user immutable flag]'
'(uchg)nouchg[unset the user immutable flag]'
)
if (( ! EUID )); then
flags=( $flags[@]
'(noarch)arch[set the archived flag]'
'(arch)noarch[unset the archived flag]'
'(nosappnd)sappnd[set the system append-only flag]'
'(sappnd)nosappnd[unset the system append-only flag]'
'(noschg)schg[set the system immutable flag]'
'(schg)noschg[unset the system immutable flag]'
)
unset own
fi
if [[ $OSTYPE = (freebsd|dragonfly|darwin)* ]]; then
flags=( $flags[@]
'(nouunlnk)uunlnk[set the user undeletable flag]'
'(uunlnk)nouunlnk[unset the user undeletable flag]'
'(nohidden)hidden[set the hidden flag]'
'(hidden)nohidden[unset the hidden flag]'
)
(( EUID )) || flags=( $flags[@]
'(nosunlnk)sunlnk[set the system undeletable flag]'
'(sunlnk)nosunlnk[unset the system undeletable flag]'
)
fi
_arguments -s -A "-*" \
'(-L -P)-H[follow symlinks on the command line (specify with -R)]' \
'(-H -P)-L[follow all symlinks (specify with -R)]' \
'(-L -H)-P[do not follow symlinks (specify with -R)]' \
'-R[recurse directories]' \
':file flag:_values -s , "file flags" $flags[@]' \
'*:file:_files "$own"'
#compdef csup
_arguments -s \
'-1[disable automatic retries]' \
'-4[force usage of IPv4 addresses]' \
'-6[force usage of IPv6 addresses]' \
'-A[local address to bind to when connecting to the server]:local address:_hosts' \