mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
21154 - Added pid completion to _perforce for p4 monitor (clear|terminate) commands.
This commit is contained in:
parent
164ddacc85
commit
9d43c7653b
@ -1,3 +1,7 @@
|
||||
2005-04-18 Felix Rosencrantz <f_rosencrantz@gmail.com>
|
||||
* 21154: Completion/Unix/Command/_perforce: add pid completion for
|
||||
monitor (clear|terminate) commands.
|
||||
|
||||
2005-04-17 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 21153: Completion/Debian/Command/_module-assistant: incorporate
|
||||
|
@ -1311,6 +1311,15 @@ _perforce_statuses() {
|
||||
}
|
||||
|
||||
|
||||
(( $+functions[_perforce_pids] )) ||
|
||||
_perforce_pids() {
|
||||
local -a ul
|
||||
|
||||
ul=(${${${(f)"$(_perforce_call_p4 monitor monitor show 2>/dev/null)"}# *}/\ /:})
|
||||
[[ $#ul -eq 1 && $ul[1] = '' ]] && ul=()
|
||||
_describe -t id 'process ID' ul
|
||||
}
|
||||
|
||||
|
||||
(( $+functions[_perforce_users] )) ||
|
||||
_perforce_users() {
|
||||
@ -1808,7 +1817,7 @@ _perforce_cmd_monitor() {
|
||||
;;
|
||||
|
||||
(terminate|clear)
|
||||
_message "process ID"
|
||||
_perforce_pids
|
||||
;;
|
||||
|
||||
(*)
|
||||
|
Loading…
Reference in New Issue
Block a user