mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-02-05 16:51:18 +01:00
merge changes from 4.1 branch
This commit is contained in:
parent
9671d37b55
commit
b71ba061fb
6 changed files with 90 additions and 19 deletions
16
ChangeLog
16
ChangeLog
|
@ -1,8 +1,24 @@
|
|||
2002-11-22 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 17958: Completion/Zsh/Command/_ulimit: add missing options
|
||||
|
||||
2002-11-13 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 17935: Src/text.c: beautify bin_whence indentation of ()
|
||||
and {} contents.
|
||||
|
||||
2002-11-12 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* Zvi Har'El: Completion/Unix/Command/_rcs: complete also for rcsdiff
|
||||
|
||||
* 17928: Zvi Har'El <rl@math.technion.ac.il>:
|
||||
Functions/Zle/edit-command-line: don't interpret escapes when
|
||||
setting the command buffer
|
||||
|
||||
* Thierry Vignaud <tvignaud@mandrakesoft.com>:
|
||||
Completion/Unix/Command/_links, Completion/Mandrake/Command/_urpmi:
|
||||
add option descriptions and missing options
|
||||
|
||||
2002-10-18 Clint Adams <clint@zsh.org>
|
||||
|
||||
* unposted: Completion/Debian/Command/_apt: add showsrc part missing
|
||||
|
|
|
@ -129,6 +129,8 @@ _urpmi() {
|
|||
"(--help)--noclean[do not clean RPM cache]" \
|
||||
"(--help --src -s)"{--src,-s}"[next package is source package]" \
|
||||
"(--help)--update[use only update media]" \
|
||||
"(--help --verify-rpm)--no-verify-rpm[do not verify rpm signature before installation]" \
|
||||
"(--help --no-verify-rpm)--verify-rpm[verify rpm signature before installation]" \
|
||||
"(--help --curl)--wget[use wget to retrieve distant files]" \
|
||||
"(--help)-a[select all packages matching command line]" \
|
||||
"(--help -m -M)-m[choose minimum closure of requires (default)]" \
|
||||
|
|
|
@ -4,25 +4,28 @@ local curcontext="$curcontext" state line
|
|||
typeset -A opt_args
|
||||
|
||||
_arguments -C \
|
||||
'-async-dns:bool:(0 1)' \
|
||||
'-max-connections:max:' \
|
||||
'-max-connections-to-host:max:' \
|
||||
'-retries:retries:' \
|
||||
'-receive-timeout:secs:' \
|
||||
'-unrestartable-receive-timeout:secs:' \
|
||||
'-format-cache-size:pages:' \
|
||||
'-memory-cache-size:kilobytes:' \
|
||||
'-http-proxy:hostport:_hosts' \
|
||||
'-ftp-proxy:hostport:_hosts' \
|
||||
'-download-dir:_files -/' \
|
||||
'-assume-codepage:codepage:' \
|
||||
'-anonymous' \
|
||||
'-dump' \
|
||||
'-no-connect' \
|
||||
'-source' \
|
||||
'-version' \
|
||||
'-help' \
|
||||
':url:->html' && return 0
|
||||
'(-help)-anonymous[restrict links so that it can run on an anonymous account]' \
|
||||
'(-help)-assume-codepage[use the given codepage when the webpage did not specify its]:codepage:' \
|
||||
'(-help)-async-dns[asynchronous DNS resolver]:bool:((0\:on 1\:off))' \
|
||||
'(-help)-download-dir[default download directory]:_files -/' \
|
||||
'(-help)-driver[graphics driver to use]:driver:(x svgalib fb pmshell atheos)' \
|
||||
'(-help)-dump[dump the page as pure text]' \
|
||||
'(-help)-format-cache-size[number of formatted document pages cached]:pages:' \
|
||||
'(-help)-ftp-proxy[host and port number of the FTP proxy, or blank]:hostport:_hosts' \
|
||||
'(-help)-g[run in graphics mode rather than plain text mode]' \
|
||||
'-help[prints the help screen]' \
|
||||
'(-help)-http-proxy[host and port number of the HTTP proxy, or blank]:hostport:_hosts' \
|
||||
'(-help)-image-cache-size[image cache memory]:kilobytes:' \
|
||||
'(-help)-max-connections[maximum number of concurrent connections]:max:' \
|
||||
'(-help)-max-connections-to-host[maximum number of concurrent connection to a given host]:max:' \
|
||||
'(-help)-memory-cache-size[cache memory]:kilobytes:' \
|
||||
'(-help)-no-connect[runs links as a separate instance]' \
|
||||
'(-help)-receive-timeout[timeout on receive]:secs:' \
|
||||
'(-help)-retries[number of retries]:retries' \
|
||||
'(-help)-source[dump the source page]' \
|
||||
'(-help)-unrestartable-receive-timeout[timeout on non restartable connections]:secs:' \
|
||||
'(-help)-version[prints the links version number and exit]' \
|
||||
':url:->html' && return 0
|
||||
|
||||
case "$state" in
|
||||
html)
|
||||
|
|
14
Completion/Unix/Command/_rcs
Normal file
14
Completion/Unix/Command/_rcs
Normal file
|
@ -0,0 +1,14 @@
|
|||
#compdef co ci rcs rcsdiff
|
||||
|
||||
local ret=1
|
||||
|
||||
if [[ -d RCS && $service != ci ]]; then
|
||||
local rep expl
|
||||
|
||||
rep=(RCS/*,v(D:t:s/\,v//))
|
||||
(( $#rep )) && _wanted files expl 'RCS file' compadd -a rep && ret=0
|
||||
fi
|
||||
|
||||
[[ $service = ci || $service = rcs || ret -eq 1 ]] && _files && ret=0
|
||||
|
||||
return ret
|
19
Completion/Zsh/Command/_ulimit
Normal file
19
Completion/Zsh/Command/_ulimit
Normal file
|
@ -0,0 +1,19 @@
|
|||
#compdef ulimit
|
||||
|
||||
[[ $PREFIX = u* ]] && compadd unlimited && return 0
|
||||
|
||||
_arguments -s \
|
||||
'-H[set hard limits]' \
|
||||
'-S[set soft and hard limits (with -H)]' \
|
||||
'(-H -S -c -d -f -l -m -n -s -t *)-a[list all current resource limits]' \
|
||||
'-c[core dump size limit]:max core dump size (512-byte blocks)' \
|
||||
'-d[maximum size of data segment]:maximum size of data segment (K-bytes)' \
|
||||
'-f[size of largest file allowed]:size of largest file allowed (512-byte blocks)' \
|
||||
'-l[maximum size of locked in memory]:maximum size of locked in memory (K-bytes)' \
|
||||
'-m[maximum size of physical memory]:maximum size of physical memory (K-bytes)' \
|
||||
'-n[maximum no. of open file descriptors]:maximum no. of open file descriptors' \
|
||||
'-s[stack size limit]:stack size limit (K-bytes)' \
|
||||
'-t[maximum cpu time per process]:maximum cpu time per process (seconds)' \
|
||||
'-u[processes available to the user]:processes' \
|
||||
'-v[maximum size of virtual memory]:maximum size of virtual memory (K-bytes)' \
|
||||
'*:size of largest file allowed'
|
17
Functions/Zle/edit-command-line
Normal file
17
Functions/Zle/edit-command-line
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Edit the command line using your usual editor.
|
||||
# Binding this to 'v' in the vi command mode map,
|
||||
# autoload edit-command-line
|
||||
# zle -N edit-command-line
|
||||
# bindkey -M vicmd v edit-command-line
|
||||
# will give ksh-like behaviour for that key,
|
||||
# except that it will handle multi-line buffers properly.
|
||||
|
||||
local tmpfile=${TMPPREFIX:-/tmp/zsh}ecl$$
|
||||
|
||||
print -R - "$PREBUFFER$BUFFER" >$tmpfile
|
||||
exec </dev/tty
|
||||
${VISUAL:-${EDITOR:-vi}} $tmpfile
|
||||
print -Rz - "$(<$tmpfile)"
|
||||
|
||||
command rm -f $tmpfile
|
||||
zle send-break # Force reload from the buffer stack
|
Loading…
Reference in a new issue