mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
merge completion function changes back from 4.1
This commit is contained in:
parent
2270746356
commit
3f52f95978
18 changed files with 327 additions and 4 deletions
42
ChangeLog
42
ChangeLog
|
@ -54,6 +54,12 @@
|
|||
2003-07-31 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 18914: Completion/Base/Utility/_nothing,
|
||||
Completion/Cygwin/Command/_cygpath,
|
||||
Completion/Cygwin/Command/_cygrunsrv,
|
||||
Completion/Cygwin/Command/_getclip,
|
||||
Completion/Cygwin/Command/_getfacl,
|
||||
Completion/Cygwin/Command/_mkshortcut,
|
||||
Completion/Cygwin/Command/_pscp, Completion/Cygwin/Command/_putclip,
|
||||
Completion/Debian/Command/_auto-apt, Completion/Debian/Command/_bug,
|
||||
Completion/Debian/Command/_debchange,
|
||||
Completion/Debian/Command/_debfoster,
|
||||
|
@ -120,6 +126,14 @@
|
|||
|
||||
* 18863: Completion/Unix/Command/_aap: new completion for aap
|
||||
|
||||
2003-07-16 Doug Kearns <djkea2@mugca.its.monash.edu.au>
|
||||
|
||||
* unposted: Completion/Debian/Command/_bug,
|
||||
Completion/Debian/Command/_debsign, Completion/Linux/Command/_pkgtool,
|
||||
Completion/Unix/Command/_cvs, Completion/Unix/Command/_ecasound,
|
||||
Completion/Unix/Command/_mysql_utils, Completion/Unix/Command/_screen:
|
||||
remove initial capitalisation from option descriptions
|
||||
|
||||
2003-07-09 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 18841: Completion/Base/Completer/_prefix: work around problem
|
||||
|
@ -282,12 +296,22 @@
|
|||
* 18462: Completion/Unix/Command/_sh: complete files in addition
|
||||
to commands
|
||||
|
||||
2003-04-22 Felix Rosencrantz <f_rosencrantz@yahoo.com>
|
||||
|
||||
* 18459: Completion/Unix/Command/_screen: fix up suggestions from
|
||||
Oliver.
|
||||
|
||||
2003-04-22 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* unposted: Completion/Unix/Command/_imagemagick: correct return codes
|
||||
|
||||
* 18458: Completion/Unix/Command/_renice: new completion for renice
|
||||
|
||||
2003-04-19 Felix Rosencrantz <f_rosencrantz@yahoo.com>
|
||||
|
||||
* 18455: Completion/Unix/Command/_screen,
|
||||
Completion/Unix/Command/.distfiles: Completion function for screen.
|
||||
|
||||
2003-04-18 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* unposted: Completion/Zsh/Context/_tilde: fix bug where 0 was
|
||||
|
@ -301,6 +325,24 @@
|
|||
|
||||
* 18443: Completion/X/Command/_dcop: new completion for dcop
|
||||
|
||||
2003-04-08 Felix Rosencrantz <f_rosencrantz@yahoo.com>
|
||||
|
||||
* 18440: Src/Zle/complete.mdd: Add the cygwin completion functions
|
||||
to the completion module.
|
||||
|
||||
2003-04-07 Felix Rosencrantz <f_rosencrantz@yahoo.com>
|
||||
|
||||
* 18439: Completion/Cygwin/.distfiles,
|
||||
Completion/Cygwin/Command/_cygcheck,
|
||||
Completion/Cygwin/Command/_cygpath,
|
||||
Completion/Cygwin/Command/_cygrunsrv,
|
||||
Completion/Cygwin/Command/_cygserver,
|
||||
Completion/Cygwin/Command/_cygstart, Completion/Cygwin/Command/_dumper,
|
||||
Completion/Cygwin/Command/_getclip, Completion/Cygwin/Command/_getfacl,
|
||||
Completion/Cygwin/Command/_mkshortcut, Completion/Cygwin/Command/_mkzsh,
|
||||
Completion/Cygwin/Command/_pscp, Completion/Cygwin/Command/_putclip:
|
||||
cygwin completion functions.
|
||||
|
||||
2003-03-28 Wayne Davison <wayned@users.sourceforge.net>
|
||||
|
||||
* 18402: Src/builtin.c: Prevent "print -m" from crashing (it now
|
||||
|
|
6
Completion/Cygwin/Command/.distfiles
Normal file
6
Completion/Cygwin/Command/.distfiles
Normal file
|
@ -0,0 +1,6 @@
|
|||
DISTFILES_SRC='
|
||||
.distfiles
|
||||
_cygcheck _cygpath _cygrunsrv _cygserver _cygstart
|
||||
_dumper _getclip _getfacl _mkshortcut _mkzsh
|
||||
_pscp _putclip
|
||||
'
|
14
Completion/Cygwin/Command/_cygcheck
Normal file
14
Completion/Cygwin/Command/_cygcheck
Normal file
|
@ -0,0 +1,14 @@
|
|||
#compdef cygcheck cygcheck.exe
|
||||
#Generated by Felix Rosencrantz
|
||||
|
||||
local context state line
|
||||
typeset -A opt_args
|
||||
_arguments \
|
||||
'(--check-setup --help -c -h)'{-c,--check-setup}'[check packages installed via setup.exe]' \
|
||||
'(--keycheck --sysinfo -k -s)'{-s,--sysinfo}'[system information (not with -k)]' \
|
||||
'(--verbose -v)'{-v,--verbose}'[verbose output (indented) (for -s or programs)]' \
|
||||
'(--registry -r)'{-r,--registry}'[registry search (requires -s)]' \
|
||||
'(--keycheck --sysinfo -k -s)'{-k,--keycheck}'[perform a keyboard check session (not with -s)]' \
|
||||
'(--check-setup --help -c -h)'{-h,--help}'[give help about the info (not with -c)]' \
|
||||
'(--version -V)'{-V,--version}'[output version information and exit]' \
|
||||
'*:program: _command_names -e:*::program arguments: _normal'
|
26
Completion/Cygwin/Command/_cygpath
Normal file
26
Completion/Cygwin/Command/_cygpath
Normal file
|
@ -0,0 +1,26 @@
|
|||
#compdef cygpath cygpath.exe
|
||||
#Generated by Felix Rosencrantz
|
||||
|
||||
_arguments \
|
||||
'(--dos --mixed --type --unix --windows -d -m -t -u -w)'{-d,--dos}'[print DOS (short) form of NAME (C:\PROGRA~1\)]' \
|
||||
'(--dos --mixed --type --unix --windows -d -m -t -u -w)'{-m,--mixed}'[like --windows, but with regular slashes (C:/WINNT)]' \
|
||||
'(--dos --mixed --type --unix --windows -d -m -t -u -w)'{-u,--unix}'[(default) print Unix form of NAME (/cygdrive/c/winnt)]' \
|
||||
'(--dos --mixed --type --unix --windows -d -m -t -u -w)'{-w,--windows}'[print Windows form of NAME (C:\WINNT)]' \
|
||||
'(--dos --mixed --type --unix --windows -d -m -t -u -w)'{-t,--type}':print type:(dos mixed unix windows)' \
|
||||
'(--absolute --long-name --path --short-name -a -l -p -s)'{-a,--absolute}'[output absolute path]' \
|
||||
'(--absolute --long-name --path --short-name -a -l -p -s)'{-l,--long-name}'[print Windows long form of NAME (with -w, -m only)]' \
|
||||
"(--absolute --long-name --path --short-name -a -l -p -s)"{-p,--path}"[NAME is a PATH list (i.e., '/bin:/usr/bin')]" \
|
||||
'(--absolute --long-name --path --short-name -a -l -p -s)'{-s,--short-name}'[print DOS (short) form of NAME (with -w, -m only)]' \
|
||||
"(--allusers -A)"{-A,--allusers}"[use 'All Users' instead of current user for -D, -P]" \
|
||||
"(--desktop --homeroot --smprograms --sysdir --windir -D -H -P -S -W)"{-D,--desktop}"[output 'Desktop' directory and exit]" \
|
||||
"(--desktop --homeroot --smprograms --sysdir --windir -D -H -P -S -W)"{-H,--homeroot}"[output 'Profiles' directory (home root) and exit]" \
|
||||
"(--desktop --homeroot --smprograms --sysdir --windir -D -H -P -S -W)"{-P,--smprograms}"[output Start Menu 'Programs' directory and exit]" \
|
||||
'(--desktop --homeroot --smprograms --sysdir --windir -D -H -P -S -W)'{-S,--sysdir}'[output system directory and exit]' \
|
||||
"(--desktop --homeroot --smprograms --sysdir --windir -D -H -P -S -W)"{-W,--windir}"[output 'Windows' directory and exit]" \
|
||||
'(--file -f)'{-f,--file}':read FILE for input; use - to read from STDIN:_files' \
|
||||
'(--option -o)'{-o,--option}'[read options from FILE as well (for use with --file)]' \
|
||||
'(--close -c)'{-c,--close}'[close specified handle (for use in captured process)]:handle' \
|
||||
'(--ignore -i)'{-i,--ignore}'[ignore missing argument]' \
|
||||
'(- 1)'{-h,--help}'[display usage information]' \
|
||||
'(- 1)'{-v,--version}'[display version information]' \
|
||||
'1: :_files' && return 0
|
25
Completion/Cygwin/Command/_cygrunsrv
Normal file
25
Completion/Cygwin/Command/_cygrunsrv
Normal file
|
@ -0,0 +1,25 @@
|
|||
#compdef cygrunsrv cygrunsrv.exe
|
||||
|
||||
_arguments \
|
||||
'(-I --install)'{-I,--install}'[install a new service]:service' \
|
||||
'(-R --remove)'{-R,--remove}'[remove specified service]:service' \
|
||||
'(-S --start)'{-S,--start}'[start specified service]:service' \
|
||||
'(-E --stop)'{-E,--stop}'[stop specified service]:service' \
|
||||
'(-p --path)'{-p,--path}'[specify application path which is run as a service]:application path' \
|
||||
'(-a --args)'{-a,--args}'[specify options to give service on startup]:args' \
|
||||
'(-c --chdir)'{-c,--chdir}'[specify working directory for the application]:directory:_directories' \
|
||||
'(-e --env)'{-e,--env}'[specify environment strings exported to service]:var=value' \
|
||||
'(-d --disp)'{-d,--disp}'[specify display name for service]:display name' \
|
||||
'(-f --desc)'{-f,--desc}'[specify service description]:description' \
|
||||
'(-t --type)'{-t,--type}'[specify service start type]:start type:(auto manual)' \
|
||||
'(-u --user)'{-u,--user}'[specify user to start service under]:user:_users' \
|
||||
'(-w --passwd)'{-w,--passwd}'[specify password for user]:password' \
|
||||
'(-s --termsig)'{-s,--termsig}'[specify signal to use to stop service]:signal:_signals' \
|
||||
'(-y --dep)'{-y,--dep}'[specify name of service that must be started]:service' \
|
||||
'(-0 --stdin)'{-0,--stdin}'[specify file for stdin redirection]:file:_files' \
|
||||
'(-1 --stdout)'{-1,--stdout}'[specify file for stdout redirection]:file:_files' \
|
||||
'(-2 --stderr)'{-2,--stderr}'[specify file for stderr redirection]:file:_files' \
|
||||
'(-o --shutdown)'{-o,--shutdown}'[stop service application during system shutdown]' \
|
||||
'(- *)'{-h,--help}'[print help information]' \
|
||||
'(- *)'{-v,--version}'[print version information]' \
|
||||
'*: :_files'
|
13
Completion/Cygwin/Command/_cygserver
Normal file
13
Completion/Cygwin/Command/_cygserver
Normal file
|
@ -0,0 +1,13 @@
|
|||
#compdef cygserver cygserver.exe
|
||||
#Generated by Felix Rosencrantz
|
||||
|
||||
local context state line
|
||||
typeset -A opt_args
|
||||
_arguments \
|
||||
'(--cleanup-threads -c)'{-c,--cleanup-threads}'[number of cleanup threads to use]' \
|
||||
'(--help -h)'{-h,--help}'[output usage information and exit]' \
|
||||
'(--request-threads -r)'{-r,--request-threads}'[number of request threads to use]' \
|
||||
'(--shutdown -s)'{-s,--shutdown}'[shutdown the daemon]' \
|
||||
'(--version -v)'{-v,--version}'[output version information and exit]' \
|
||||
'*: :_files'
|
||||
|
30
Completion/Cygwin/Command/_cygstart
Normal file
30
Completion/Cygwin/Command/_cygstart
Normal file
|
@ -0,0 +1,30 @@
|
|||
#compdef cygstart cygstart.exe
|
||||
#Generated by Felix Rosencrantz
|
||||
|
||||
local context state line
|
||||
typeset -A opt_args
|
||||
_arguments \
|
||||
'(--action -a)'{-a,--action=-}':Use specified action instead of default:(open edit explore print find)' \
|
||||
'(--open -o)'{-o,--open}'[Short for: --action open]' \
|
||||
'(--explore -x)'{-x,--explore}'[Short for: --action explore]' \
|
||||
'(--edit -e)'{-e,--edit}'[Short for: --action edit]' \
|
||||
'(--find -f)'{-f,--find}'[Short for: --action find]' \
|
||||
'(--print -p)'{-p,--print}'[Short for: --action print]' \
|
||||
'(--directory -d)'{-d,--directory=-}':Set working directory:_directories' \
|
||||
'--hide[Hides the window and activates another window]' \
|
||||
'--maximize[Maximizes the specified window]' \
|
||||
'--minimize[Minimizes the specified window and activates the next top-level window in the z-order]' \
|
||||
'--restore[Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when restoring a minimized window]' \
|
||||
'--show[Activates the window and displays it in its current size and position]' \
|
||||
'--showmaximized[Activates the window and displays it as a maximized window]' \
|
||||
'--showminimized[Activates the window and displays it as a minimized window]' \
|
||||
'--showminnoactive[Displays the window as a minimized window. The active window remains active]' \
|
||||
'--showna[Displays the window in its current state. The active window remains active]' \
|
||||
'--shownoactivate[Displays a window in its most recent size and position. The active window remains active]' \
|
||||
'--shownormal[Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when displaying the window for the first time]' \
|
||||
'(--help -?)'{'-?',--help}'[Show this help message]' \
|
||||
'--usage[Display brief usage message]' \
|
||||
'--version[Display version information]' \
|
||||
'--license[Display licensing information]' \
|
||||
'--reference[Open MSDN reference for ShellExecute]' \
|
||||
'*:program: _command_names -e:*::program arguments: _normal'
|
13
Completion/Cygwin/Command/_dumper
Normal file
13
Completion/Cygwin/Command/_dumper
Normal file
|
@ -0,0 +1,13 @@
|
|||
#compdef dumper dumper.exe
|
||||
#Generated by Felix Rosencrantz
|
||||
|
||||
local context state line
|
||||
typeset -A opt_args
|
||||
_arguments \
|
||||
'(--verbose -d)'{-d,--verbose}'[be verbose while dumping]' \
|
||||
'(--help -h)'{-h,--help}'[output help information and exit]' \
|
||||
'(--quiet -q)'{-q,--quiet}'[be quiet while dumping (default)]' \
|
||||
'(--version -v)'{-v,--version}'[output version information and exit]' \
|
||||
'1: :_file' \
|
||||
'*: :_pids'
|
||||
|
10
Completion/Cygwin/Command/_getclip
Normal file
10
Completion/Cygwin/Command/_getclip
Normal file
|
@ -0,0 +1,10 @@
|
|||
#compdef getclip getclip.exe
|
||||
#Generated by Felix Rosencrantz
|
||||
|
||||
_arguments \
|
||||
'(--dos -d)'{-d,--dos}'[output text will have DOS line endings]' \
|
||||
'(--unix -u)'{-u,--unix}'[output text will have UNIX line endings]' \
|
||||
'(-)'{-\?,--help}'[show this help message]' \
|
||||
'(-)--usage[display brief usage message]' \
|
||||
'(-)--version[display version information]' \
|
||||
'(-)--license[display licensing information]'
|
10
Completion/Cygwin/Command/_getfacl
Normal file
10
Completion/Cygwin/Command/_getfacl
Normal file
|
@ -0,0 +1,10 @@
|
|||
#compdef getfacl getfacl.exe
|
||||
#Generated by Felix Rosencrantz
|
||||
|
||||
_arguments \
|
||||
'(--all -a)'{-a,--all}'[display the filename, owner, group, and ACL of the file]' \
|
||||
'(--dir -d)'{-d,--dir}'[display the filename, owner, group, and default ACL of the directory]' \
|
||||
'(--noname -n)'{-n,--noname}'[display user and group IDs instead of names]' \
|
||||
'(- *)'{-h,--help}'[display help information]' \
|
||||
'(- *)'{-v,--version}'[display version information]' \
|
||||
'*: :_files'
|
15
Completion/Cygwin/Command/_mkshortcut
Normal file
15
Completion/Cygwin/Command/_mkshortcut
Normal file
|
@ -0,0 +1,15 @@
|
|||
#compdef mkshortcut mkshortcut.exe
|
||||
|
||||
_arguments \
|
||||
'(--arguments -a)'{-a,--arguments=-}'[use specified arguments]:arguments' \
|
||||
'(--icon -i)'{-i,--icon=-}'[specify icon file for link to use]:icon file:_files' \
|
||||
'(--iconoffset -j)'{-j,--iconoffset=-}'[specify offset of icon in icon file]:offset' \
|
||||
'(--name -n)'{-n,--name=-}'[specify name for link]:file:_files' \
|
||||
'(--allusers -A)'{-A,--allusers}"[use 'All Users' instead of current user for -D,-P]" \
|
||||
'(--desktop -D)'{-D,--desktop}"[create link relative to 'Desktop' directory]" \
|
||||
'(--smprograms -P)'{-P,--smprograms}"[create link relative to Start Menu 'Programs' directory]" \
|
||||
'(- 1)'{-h,--help}'[show help information]' \
|
||||
'(- 1)--usage[display brief usage message]' \
|
||||
'(- 1)'{-v,--version}'[show version information]' \
|
||||
'(- 1)--license[display licensing information]' \
|
||||
'1:target:_files'
|
10
Completion/Cygwin/Command/_mkzsh
Normal file
10
Completion/Cygwin/Command/_mkzsh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#compdef mkzsh mkzsh.exe
|
||||
#Generated by Felix Rosencrantz
|
||||
|
||||
local context state line
|
||||
typeset -A opt_args
|
||||
_arguments \
|
||||
'(--allusers -A)'{-A,--allusers}'[creates item for All Users instead of just current user]' \
|
||||
'(--desktop -D)'{-D,--desktop}'[creates a Desktop icon for running /zsh.bat]' \
|
||||
'(--smprograms -P)'{-P,--smprograms}'[creates a Program menu item for running /zsh.bat]' \
|
||||
'(--help -h)'{-h,--help}'[prints usage]'
|
18
Completion/Cygwin/Command/_pscp
Normal file
18
Completion/Cygwin/Command/_pscp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#compdef pscp pscp.exe
|
||||
#Generated by Felix Rosencrantz
|
||||
|
||||
_arguments \
|
||||
'-p[preserve file attributes]' \
|
||||
"-q[quiet, don't show statistics]" \
|
||||
'-r[copy directories recursively]' \
|
||||
'-v[show verbose messages]' \
|
||||
'-load[load settings from saved session]:session' \
|
||||
'-P[connect to specified port]:port:_ports' \
|
||||
'-l[connect with specified username]:username:_users' \
|
||||
'-pw[login with specified password]:password' \
|
||||
'(-1 -2)'{-1,-2}'[force use of particular SSH protocol version]' \
|
||||
'-C[enable compression]' \
|
||||
'-i[specify private key file for authentication]:private key file:_files' \
|
||||
'-batch[disable all interactive prompts]' \
|
||||
'-unsafe[allow server-side wildcards (DANGEROUS)]' \
|
||||
'*: :_files'
|
10
Completion/Cygwin/Command/_putclip
Normal file
10
Completion/Cygwin/Command/_putclip
Normal file
|
@ -0,0 +1,10 @@
|
|||
#compdef putclip putclip.exe
|
||||
#Generated by Felix Rosencrantz
|
||||
|
||||
_arguments \
|
||||
'(--dos -d)'{-d,--dos}'[clipboard text will have DOS line endings]' \
|
||||
'(--unix -u)'{-u,--unix}'[clipboard text will have UNIX line endings]' \
|
||||
'(-)'{'-?',--help}'[show this help message]' \
|
||||
'(-)--usage[display brief usage message]' \
|
||||
'(-)--version[display version information]' \
|
||||
'(-)--license[display licensing information]'
|
|
@ -20,5 +20,5 @@ _chkconfig _cdcd _irssi _sccs _texinfo _ant
|
|||
_global _figlet _ifconfig _last _larch
|
||||
_lsof _mt _xmlsoft _elinks _tidy _python
|
||||
_antiword _renice _sablotron _cdrecord _aap _du
|
||||
_rar _vorbis _subversion
|
||||
_rar _vorbis _subversion _screen
|
||||
'
|
||||
|
|
|
@ -12,10 +12,10 @@ _arguments \
|
|||
'(-)--version[show version information]' \
|
||||
'-n\:-[set the name of chainsetup]:chainsetup name' \
|
||||
'-s\:-[create a new chainsetup from file]:chainsetup file:_files' \
|
||||
'-sr\:-[set internal sampling rate]:Internal sampling rate:(8000 11025 22050 44100 48000)' \
|
||||
'-sr\:-[set internal sampling rate]:internal sampling rate:(8000 11025 22050 44100 48000)' \
|
||||
'*-a\:-[select active signal chains]:chain name' \
|
||||
'-b\:-[set the size of buffer in samples]:buffer size:->b' \
|
||||
'-m\:-[force use of specified mix mode]:Mix mode:((auto\:Automatic simple\:Only\ one\ input/cain/output normal\:Normal\ single-threaded\ mode))' \
|
||||
'-m\:-[force use of specified mix mode]:mix mode:((auto\:Automatic simple\:Only\ one\ input/cain/output normal\:Normal\ single-threaded\ mode))' \
|
||||
'-r[use realtime scheduling policy (SCHED_FIFO)]' \
|
||||
'-r\:-[use realtime scheduling policy (SCHED_FIFO)]:sched_priority' \
|
||||
'-x[truncate outputs]' \
|
||||
|
|
81
Completion/Unix/Command/_screen
Normal file
81
Completion/Unix/Command/_screen
Normal file
|
@ -0,0 +1,81 @@
|
|||
#compdef screen
|
||||
#Generated by Felix Rosencrantz
|
||||
|
||||
local context state line scr_cmds
|
||||
typeset -A opt_args
|
||||
scr_cmds=(
|
||||
acladd aclchg acldel aclgrp aclumask
|
||||
activity addacl allpartial at attrcolor
|
||||
autodetach autonuke backtick bce bell_msg
|
||||
bind bindkey break breaktype bufferfile
|
||||
c1 caption charset chdir clear
|
||||
colon command compacthist console copy
|
||||
copy_reg crlf debug defautonuke defbce
|
||||
defbreaktype defc1 defcharset defencoding defescape
|
||||
defflow defgr defhstatus defkanji deflog
|
||||
deflogin defmode defmonitor defobuflimit defscrollback
|
||||
defshell defsilence defslowpaste defutf8 defwrap
|
||||
defwritelock defzombie detach digraph dinfo
|
||||
displays dumptermcap echo encoding escape
|
||||
eval exec fit flow focus
|
||||
gr hardcopy hardcopy_append hardcopydir hardstatus
|
||||
height help history hstatus ignorecase
|
||||
info ins_reg kill lastmsg license
|
||||
lockscreen log logfile login logtstamp
|
||||
mapdefault mapnotnext maptimeout markkeys maxwin
|
||||
meta monitor msgminwait msgwait multiuser
|
||||
nethack next nonblock number obuflimit
|
||||
only other partial password paste
|
||||
pastefont pow_break pow_detach pow_detach_msg prev
|
||||
printcmd process quit readbuf readreg
|
||||
redisplay register remove removebuf reset
|
||||
resize screen scrollback select sessionname
|
||||
setenv setsid shell shelltitle silence
|
||||
silencewait sleep slowpaste sorendition source
|
||||
split startup_message stuff su term
|
||||
termcap termcapinfo terminfo time title
|
||||
unsetenv utf8 vbell vbell_msg vbellwait
|
||||
verbose version wall width windowlist
|
||||
windows wrap writebuf writelock xoff
|
||||
xon zombie
|
||||
)
|
||||
|
||||
_arguments \
|
||||
"-a[force all capabilities into each window's termcap]" \
|
||||
'-A[adapt all windows to the new display width & height]' \
|
||||
"-c[read configuration file instead of '.screenrc']:config file:_files -/" \
|
||||
'-d[detach the elsewhere running screen (with -r: reattach here)]:session name:->sessionname' \
|
||||
'-dmS[start as daemon, screen session in detached mode]' \
|
||||
'-D[detach and logout remote (with -r: reattach here)]' \
|
||||
'-e[change command characters]:command characters:' \
|
||||
'-f-[set flow control]:flow control:((n\:flow\ control\ off a\:Flow\ control\ auto \:Flow\ control\ on))' \
|
||||
'-h[set the size of the scrollback history buffer]:buffer size:' \
|
||||
'-i[interrupt output sooner when flow control is on]' \
|
||||
'(-l)-ln[login mode off (do not update /var/run/utmp)]' \
|
||||
'(-ln)-l[login mode on (update /var/run/utmp)]' \
|
||||
'(-)'{-ls,-list}'[list sessions/socket directory]' \
|
||||
"-L[terminal's last character can be safely updated]" \
|
||||
'-m[ignore $STY variable, do create a new screen session]' \
|
||||
'-O[choose optimal output rather than exact vt100 emulation]' \
|
||||
'-p[preselect the named window]:window number or name:(( \=\:windowlist -\:blank\ window \:window\ number))' \
|
||||
'-q[quiet startup. exits with non-zero return code if unsuccessful]' \
|
||||
'-r[reattach to a detached screen process]:session name:->sessionname' \
|
||||
'-R[reattach if possible, otherwise start a new session]' \
|
||||
'-s[shell to execute rather than $SHELL]:shell name: _command_names -e' \
|
||||
'-S[name this session <pid>.sockname instead of <pid>.<tty>.<host>]:session name:' \
|
||||
"-t[set title(window's name)]:title:" \
|
||||
'-T[use term as $TERM for windows, rather than "screen"]:terminal type:_terminals' \
|
||||
'-U[tell screen to use UTF-8 encoding]' \
|
||||
'(-)-v[print screen version]' \
|
||||
'(-)-wipe[do nothing, clean up SockDir]' \
|
||||
'-x[attach to a not detached screen. (Multi display mode).]' \
|
||||
'-X[execute <cmd> as a screen command in the specified session.]:screencmd:(${scr_cmds[@]})'
|
||||
|
||||
case $state in
|
||||
sessionname)
|
||||
# Complete session names
|
||||
local screendir
|
||||
screendir=( ${${${(M)${(f)"$(_call_program screen-session $words[1] -ls)"}:#*Socket*}%.}##* } )
|
||||
_wanted screen-session expl 'screen process' _path_files -W screendir
|
||||
;;
|
||||
esac
|
|
@ -1,7 +1,7 @@
|
|||
name=zsh/complete
|
||||
link=either
|
||||
load=yes
|
||||
functions='Completion/*comp* Completion/AIX/*/* Completion/BSD/*/* Completion/Base/*/* Completion/Debian/*/* Completion/Linux/*/* Completion/Mandrake/*/* Completion/Redhat/*/* Completion/Unix/*/* Completion/X/*/* Completion/Zsh/*/*'
|
||||
functions='Completion/*comp* Completion/AIX/*/* Completion/BSD/*/* Completion/Base/*/* Completion/Cygwin/*/* Completion/Debian/*/* Completion/Linux/*/* Completion/Mandrake/*/* Completion/Redhat/*/* Completion/Unix/*/* Completion/X/*/* Completion/Zsh/*/*'
|
||||
|
||||
moddeps="zsh/zle"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue