...
 
Commits (4439)

Too many changes to show.

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

......@@ -13,3 +13,4 @@ stamp-h
stamp-h.in
autom4te.cache
*.swp
.git
DISTFILES_SRC='
.cvsignore .distfiles .gitignore .preconfig Makefile.in
ChangeLog
FEATURES INSTALL LICENCE MACHINES META-FAQ NEWS README
aclocal.m4 aczsh.m4 configure.ac
META-FAQ
configure config.h.in stamp-h.in
config.guess config.sub install-sh mkinstalldirs
'
# Top-most editorconfig file
root = true
[*]
end_of_line = lf
tab_width = 8
indent_size = 2
indent_style = tab
[ChangeLog]
indent_size = 8
[*.[ch]]
indent_size = 4
......@@ -3,6 +3,7 @@ tags
TAGS
*.o
*.o.c
*.orig
*.a
*.so
*.dll
......@@ -27,7 +28,21 @@ TAGS
Config/defs.mk
CVS
.#*
Doc/help
Doc/help.txt
Doc/help/[_a-zA-Z0-9]*
Doc/intro.pdf
Doc/intro.ps
Doc/intro.a4.pdf
Doc/intro.a4.ps
Doc/intro.us.pdf
Doc/intro.us.ps
Doc/version.yo
Doc/texi2html.conf
Doc/zsh*.1
Doc/zsh.texi
Doc/zsh.info*
......@@ -46,6 +61,8 @@ Doc/zsh.vr
Doc/zsh.vrs
Doc/zsh.log
Doc/zsh.dvi
Doc/zsh_a4.dvi
Doc/zsh_us.dvi
Doc/zsh.tp
Doc/zsh.tps
Doc/zsh.idx
......@@ -90,6 +107,7 @@ Src/tags
Src/TAGS
Src/version.h
Src/zsh
Src/zsh.exe
Src/zshcurses.h
Src/zshpaths.h
Src/zshterm.h
......@@ -137,3 +155,4 @@ Src/Zle/zle_things.h
Src/Zle/zle_widget.h
Test/*.tmp
/.project
This diff is collapsed.
DISTFILES_SRC='
.distfiles
.cvsignore README compaudit compdump compinit compinstall
bashcompinit
'
DISTFILES_SRC='
.distfiles
_floppy _lscfg _lsdev _lslv _lspv _lsvg _smit
'
DISTFILES_SRC='
.distfiles
_logical_volumes _object_classes _physical_volumes _volume_groups
'
DISTFILES_SRC='
.distfiles
_bsd_pkg
_chflags
_csup
_cvsup
_fetch
_freebsd-update
_fstat
_kld
_pfctl
_portaudit
_portlint
_portmaster
_portsnap
_powerd
_procstat
_sockstat
'
This diff is collapsed.
#compdef bsdconfig
local -a shortcuts
shortcuts=(
api
'console:utilities to customize the behavior of the system console'
'defaultrouter:default router/gateway'
'diskmgmt:manage disk partitions and/or labels using sade(8)'
'docsinstall:install/reinstall FreeBSD documentation set(s)'
'dot:generate a graphviz dot(1) language file(printed on stdout)'
'groupadd:add groups'
'groupdel:delete groups'
'groupedit:edit/view groups'
'groupmgmt:utilities to add/change/view/delete group accounts'
'hostname:set hostname/domainname'
includes
'kern_securelevel:set kern.securelevel variable'
'mouse:utilities for configuring, exploring, and enabling console mouse support'
'mouse_disable:disable mouse support'
'mouse_enable:enable mouse support'
'mouse_flags:set mouse daemon flags'
'mouse_port:select mouse port'
'mouse_type:select mouse type'
'nameservers:DNS Nameservers menu under networking'
'netdev:configure network interfaces'
'networking:utilities for network related settings'
'packages:browse, install, uninstall, or re-install packaged software'
'password:set the system administrator (root) password'
'security:configure various system security settings'
'startup:configure various aspects of system startup'
'startup_misc:miscellaneous startup services'
'startup_rcadd:add directives to rc.conf(5)'
'startup_rcconf:view/edit directives to rc.conf(5)'
'startup_rcdelete:delete directives from rc.conf(5)'
'startup_rcvar:toggle directives on/off'
'syscons_font:select console font'
'syscons_keymap:select console keymap'
'syscons_repeat:set key repeat speed'
'syscons_saver:select console screensaver'
'syscons_screenmap:select console screenmap'
'syscons_ttys:select console TTY type'
'timezone:set the regional timezone of the local machine'
'ttys:edit the ttys(5) database with your favorite editor'
'useradd:add users'
'userdel:delete users'
'useredit:edit/view users'
'usermgmt:utilities to add/edit/view/delete user accounts'
vt_font
vt_keymap
vt_repeat
vt_saver
vt_screenmap
vt_ttys
)
_arguments -s -w -A '-*' : \
'-d[debug mode]' \
'-D[send debug info to file]: :{ compset -P 1 +; _files }' \
'-f[load file as script then exit]: : _files' \
'-h[display help information]' \
'-S[secure X11 mode]' \
'-X[use Xdialog(1)]' \
'1:bsdconfig(8) menu:(( $shortcuts ))'
#compdef bsdinstall
local -a _bsdinstall_targets
_bsdinstall_targets=(
'auto:standard interactive installation, including disk partitioning'
"entropy:stores a small amount of data from /dev/random in the new system's root"
'jail:sets up a new chroot system at destination, suitable for use with jail(8)'
'script:run an installation script'
"keymap:set the keymap and save to the new system's rc.conf"
'hostname:set the hostname for the new system'
'netconfig:configure networking'
'autopart:run the interactive guided disk partitioner'
'zfsboot:run the interactive/scriptable ZFS partitioner'
'scriptedpart:non-interactive partition setup'
'mount:mount the file systems previously configured by autopart, partedit, or scriptedpart'
'distfetch:fetches the distributions in DISTRIBUTIONS to BSDINSTALL_DISTDIR from BSDINSTALL_DISTSITE'
'checksum:verifies the checksums of the distributions listed in DISTRIBUTIONS'
'distextract:extracts the distributions listed in DISTRIBUTIONS into BSDINSTALL_CHROOT'
"rootpass:interactively invokes passwd(1) in the new system to set the root user's password"
'adduser:interactively invokes adduser(8) in the new system'
'time:interactively sets the time, date, and time zone of the new system'
'services:queries the user for the system daemons to begin at system startup'
'config:installs the configuration files destined for the new system'
)
local context state state_descr line
typeset -A val_args
_arguments -A '-*' : \
'-D[installation log file]: : _files' \
'1: :->targets' \
'*: :->args'
case $state in
targets) _describe targets _bsdinstall_targets;;
args)
shift words
[[ $words[1] == '-D' ]] && shift 2 words
case $words[1] in
jail) _files -/;;
script) _files;;
scriptedpart) _message "$words[1] parameters";;
*) _message "nothing to complete"; return 1;;
esac
;;
esac
#compdef chflags
local flags own='-g *(-u$EUID)'
local args 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]'
)
(( ! EUID || $+_comp_priv_prefix )) && own=
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]'
if [[ $OSTYPE = (darwin|dragonfly|freebsd)* ]]; then
args=(
"-f[don't display diagnostic messages]"
'-v[verbose output]'
)
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 "-*" \
_arguments -s -A "-*" : $args \
': :_file_flags' \
'*:file:_files "$own"' \
- opth \
'-h[act on symlinks]' \
- optR \
'-R[recurse directories]' \
'(-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"'
'(-L -H)-P[do not follow symlinks (specify with -R)]'
#compdef cu
local variant ign
local -a args
_pick_variant -r variant taylor='Taylor UUCP' $OSTYPE --version
case $variant in
openbsd*)
args+=(
"-d[don't block waiting for a carrier to be detected]"
'-r[start cu in restricted mode - prevent local operations]'
)
;;
taylor|(net|free)bsd*)
args+=(
'(-o -P --parity)-e[use even parity]'
'(-e -P --parity)-o[use odd parity]'
)
;|
(net|free)bsd*)
args+=( '-t[connect via a hard-wired connection to a host on a dial-up line]' )
;|
taylor|netbsd*)
(( $#words > 2 )) && ign='!'
args+=(
"${ign}--help[display usage information]"
'(-s)--speed=[set line speed for the connection]:line speed [9600]:_baudrates'
'(-e -o -P)--parity=[set parity]:parity [none]:(even odd none)'
'(-h --halfduplex)'{-h,--halfduplex}'[echo characters locally]'
'--nostop[turn off XON/XOFF handling]'
'(-E --escape)'{-E+,--escape=}'[specify escape character]:escape character [~]'
'(-a -p --port)'{-a+,-p+,--port=}'[specify the port]:port'
'(-c --phone -n --prompt)'{-c+,--phone=}'[specify phone number to call]:phone number'
'(1 -l -z --system)--line=[specify line to use]:line:(/dev/(cuaU#<->|ttyS<->|tty.*|cu.*)(N%c))'
)
;|
taylor)
args+=(
"${ign}(-v --version)"{-v,--version}"[display version information]"
'(-n --prompt -c --phone)'{-n,--prompt}'[prompt for the phone number to use]'
'(-x --debug)-d[enter debugging mode]'
'(-d -x --debug)'{-x+,--debug=}'[turn on particular debugging types]:debug type:_sequence compadd - all abnormal chat handshake port config incoming outgoing'
'(-I --config)'{-I+,--config=}'[specify configuration file]:configuration file:_files'
'(1 -z --system)'{-z+,--system=}'[specify system to call]:system'
)
;;
netbsd*)
args+=(
'(-E --escape)-n+[disable escape character processing]'
'(-f -F --flow)'{-F+,--flow=}'[set flow control]:flow control:(hard soft none)'
'(-F --flow)-f[use no flow control]'
'(-e -o --parity)-P+[set parity]:parity [none]:(even odd none)'
)
;;
freebsd*)
args=( -A "-*" $args
'-a[set the acu port]:acu'
'-h[echo characters locally]'
)
;;
esac
_arguments -s $args \
'(--speed)-s+[set line speed for the connection]:line speed [9600]:_baudrates' \
'(1 --line -z --system)-l+[specify line to use]:line:(/dev/(cuaU#<->|ttyS<->|tty.*|cu.*)(N%c))' \
'1: :_guard "^-*" system'
#compdef fetch
# Deprecated arguments are removed from the completion
_arguments -s \
'-1[stop and return exit code 0 at the first successfully retrieved file]' \
'-4[forces fetch to use IPv4 addresses only]' \
'-6[forces fetch to use IPv6 addresses only]' \
'-A[do not automatically follow "temporary" (302) redirects]' \
'-a[automatically retry the transfer upon soft failures]' \
'-B[specify the read buffer size in bytes]:bytes:' \
'-d[use a direct connection even if a proxy is configured]' \
'-F[in combination with the -r flag, forces a restart]' \
'-l[if the target is a file-scheme URL, make a symbolic link to the target]' \
'-M' \
'-m[mirror mode]' \
'-N[use file instead of ~/.netrc to look up login names and pass- words for FTP sites]' \
'-n[do not preserve the modification time]' \
'-o[set the output file name]:file:_files' \
'-P' \
'-p[use passive FTP]' \
'-q[quiet mode]' \
'-R[do not delete the output file in any circumstances]' \
'-r[restart a previously interrupted transfer]' \
'-S[require the file size reported by the server to match the specified value]' \
'-s[print the size in bytes, without fetching it]' \
'-T[set timeout value]:seconds:' \
'-U[when using passive FTP, allocate the port for the data connection from the low port range]' \
'-v[increase verbosity level]' \
'-w[wait successive retries]:seconds:' \
'*:URL to fetch:_urls'
# Deprecated arguments are prefixed with ! so they aren't listed but their arguments are completed
_arguments -s -S \
'(-1 --one-file)'{-1,--one-file}'[stop and return exit code 0 at the first successfully retrieved file]' \
'(-4 --ipv4-only)'{-4,--ipv4-only}'[forces fetch to use IPv4 addresses only]' \
'(-6 --ipv6-only)'{-6,--ipv6-only}'[forces fetch to use IPv6 addresses only]' \
'(-A --no-redirect)'{-A,--no-redirect}"[don't automatically follow "temporary" (302) redirects]" \
'(-a --retry)'{-a,--retry}'[automatically retry the transfer upon soft failures]' \
'(-B --buffer-size)'{-B+,--buffer-size=}'[specify the read buffer size in bytes]:buffer size (bytes)' \
'--bind-address=[specify address to which outgoing connections will be bound]:host:_hosts' \
'--ca-cert=[specify certificate bundle containing trusted CA certificates]:file:_files' \
'--ca-path=[specify directory containing trusted CA hashes]:path:_directories' \
'--cert=[specify PEM encoded client key for authentication]:file:_files -g "*.pem(-.)"' \
'--crl=[specify certificate revocation list file]:file:_files' \
'(-d --direct)'{-d,--direct}'[use a direct connection even if a proxy is configured]' \
'(-F --force-restart)'{-F,--force-restart}'[in combination with the -r flag, forces a restart]' \
'(-i --if-modified-since)'{-i+,--if-modified-since=}'[only retrieve if remote file newer than specified local file]:file:_files' \
'--key=[specify PEM encoded client key]:key file:_files -g "*.pem(-.)"' \
'(-l --symlink)'{-l,--symlink}'[if the target is a file-scheme URL, make a symbolic link to the target]' \
'-M' \
'(-m --mirror -r --restart)'{-m,--mirror}'[mirror mode]' \
'(-N --netrc)'{-N+,--netrc=}'[use file instead of ~/.netrc to look up login names and pass- words for FTP sites]' \
'(-n --no-mtime)'{-n,--no-mtime}"[don't preserve the modification time]" \
'--no-passive[force FTP code to use active mode]' \
'--no-proxy=[hosts on which to disable proxoes]:host:_sequence _hosts' \
'--no-sslv3' '--no-tlsv1' --no-verify-hostname --no-verify-peer \
'(-o --output)'{-o+,--output=}'[set the output file name]:file:_files' \
'-P' \
'(-p --passive)'{-p,--passive}'[use passive FTP]' \
'--referer=:URL:_urls' \
'(-q --quiet)'{-q,--quiet}'[quiet mode]' \
'(-R --keep-output)'{-R,--keep-output}"[don't delete the output file in any circumstances]" \
'(-r --restart -m --mirror)'{-r,--restart}'[restart a previously interrupted transfer]' \
'(-S --require-size)'{-S+,--require-size=}'[require the file size reported by the server to match the specified value]' \
'(-s --print-size)'{-s,--print-size}'[print the size in bytes, without fetching it]' \
'(-T --timeout)'{-T+,--timeout=}'[set timeout value]:seconds:' \
'(-U --passive-portrange-default)'{-U,--passive-portrange-default}'[when using passive FTP, allocate the port for the data connection from the low port range]' \
'--user-agent=:user agent' \
'(-v --verbose)'{-v,--verbose}'[increase verbosity level]' \
'(-w --retry-delay)'{-w+,--retry-delay=}'[wait successive retries]:delay (seconds)' \
'!(*)-h+:host:_hosts' '!(*)-f+:file:_files' '!(*)-c+:remote directory:_directories' \
'*:URL to fetch:_urls'
......@@ -7,14 +7,17 @@ flags=(
'(install rollback)upgrade[fetch files necessary for upgrading to a new release]'
'(upgrade rollback)install[install the most recently fetched updates or upgrade]'
'(upgrade install)rollback[uninstall the most recently installed updates]'
'IDS[compare the system against an index of "known good" files]'
)
_arguments -s \
_arguments \
'-b[operate on a system mounted at basedir]:basedir:_files -/' \
'-d[store working files in workdir]:workdir:_files -/' \
'-f[read configuration options from conffile]:conf file:_files' \
'-k[trust an RSA key with SHA256 of KEY]:RSA key:' \
'-r[specify the new release]:new release:' \
'-F[force freebsd-update fetch to proceed where it normally would not]' \
'-k[trust an RSA key with SHA256 of KEY]:RSA key' \
'-r[specify the new release]:new release' \
'-s[fetch files from the specified server or server pool]:server:_hosts' \
'-f[mail output of cron command, if any, to address]:address:' \
':command:_values -S " " -w "commands" $flags[@]'
'-t[mail output of cron command, if any, to address]:address' \
'--currently-running[assume specified release as current]:release' \
'*:command:_values -S " " -w "commands" $flags[@]'
#compdef fstat
local pids
pids=(${${${(f)"$(/usr/bin/procstat -ah)"}/[[:space:]]#/}/[[:space:]]*[[:space:]](ELF[[:digit:]]#[[:space:]]|-[[:space:]]#)/:})
_arguments -s \
'-f[restrict examination to files open in the same file systems as the named file arguments]' \
'-M[extract values associated with the name list from the specified core]:core:_files' \
'-N[extract the name list from the specified system]:system:' \
'-M+[extract values associated with the name list from the specified core]:core:_files' \
'-N+[extract the name list from the specified system]:system' \
'-m[include memory-mapped files in the listing]' \
'-n[numerical format]' \
'-p[report all files open by the specified process]:process id:(($pids))' \
'-u[report all files open by the specified user]:user:_users' \
'-p+[report all files open by the specified process]:process id:_pids' \
'-u+[report all files open by the specified user]:user:_users' \
'-v[verbose mode]' \
'*:files:_files'
'*: :_files'
#compdef fw_update
_arguments -s -S -A "-*" \
'(*)-a[install or update firmware for all drivers]' \
'-d[delete drivers instead of adding them]' \
'-i[display information]' \
'-n[dry run]' \
'-p[use the firmware at specified path]:path:' \
'*-v[verbose output]' \
'(-a)*:driver:'
#compdef gstat
_arguments -s : \
'-a[only display providers that are at least 0.1% busy]' \
'(-B)-b[batch mode]' \
'(-b)-B[endless batch mode]' \
'-c[enable the display geom(4) consumers]' \
'-d[enable the display delete operations]' \
'-f+[filter by regex]:regex' \
'-o[enable the display for other operations]' \
"-s[enable blocks' size statistics]" \
'-I+[display refresh rate]:interval (ms)' \
'-p[only display physical providers]'
#compdef jail
local curcontext="$curcontext" ret=1
local -a state state_descr line jails running alts suf
local -A opt_args
_arguments -C -s \
'-c[create a new jail]' \
'-m[modify an existing jail]' \
'-r[remove specified jail]' \
'-d[allow changes to a dying jail]' \
'-f+[specify configuration file]:config file [/etc/jail.conf]:_files' \
'-h[resolve host.hostname and use IP addresses for the jail]' \
'(-q)-i[output jail ID of new jails]' \
'-J+[write a file containing parameters used to start the jail]:file:_files' \
'-p+[limit the number of commands from exec.* that can run simultaneously]:limit' \
'(-i -v)-q[suppress the message printed when a jail is created, modified or removed]' \
'-R[remove jail without using the configuration file]' \
'(-q)-v[print a message on every operation]' \
'!-n+:name' '!-l' '!-s+:secure level' \!-{u,U}'+:user:_users' \
'*:: :->args' && ret=0
if [[ -n $state ]]; then
if compset -P 1 '(^name)='; then
case ${IPREFIX%=} in
command|exec.*st(art|op)*) _cmdstring && ret=0 ;;
depend) _jails && ret=0 ;;
path) _directories && ret=0 ;;
host|vnet) alts=( 'values:value:(inherit new)' ) ;;
ip[46]) alts=( 'values:value:(inherit new disable)' ) ;;
*_user) _users && ret=0 ;;
*) _message -e values 'value' ;;
esac
elif compset -P name= || [[ $#line = 1 ]]; then
if (( $+opt_args[-r] || $+opt_args[-m] )); then
alts=( 'jails:jail:_jails' )
elif (( $+opt_args[-c] )); then
running=( ${${(f)"$(_call_program jails jls name)"}/ /:} )
jails=( ${${(M)${(f)"$(<${opt_args[-f]:-/etc/jail.conf})"}:#[a-z]# #\{#(#e)}%% *} )
alts=( "jails:jail:compadd - ${jails:|running}" )
fi
fi
if [[ -z $IPREFIX ]]; then
compset -S '=*' || suf=( -qS = )
alts+=(
'parameters:parameter:compadd -r "\n\t\- =" - persist allow.{set_hostname,sysvipc,raw_sockets,chflags,mount{,.devfs,.fdescfs,.nullfs,.procfs,.linprocfs,.linsysfs,.tmpfs,.zfs},quotas,socket_af} mount.{devfs,fdescfs,procfs}'
'parameters:parameter:compadd $suf - jid name path ip{4,6}{,.addr{,sel}} vnet host.hostname host securelevel devfs_ruleset children.{max,cur} enforce_statfs cpuset.id osrelease osreldate command exec.{{,pre,post}{start,stop},clean,jail_user,system{,_jail}_user,timeout,consolelog,fib} stop.timeout {vnet.,}interface ip_hostname mount{,.fstab} depend'
)
fi
(( $#alts )) && _alternative $alts && ret=0
fi