* PATCH: _perforce to add pid completion
@ 2005-04-18 15:33 Felix Rosencrantz
0 siblings, 0 replies; only message in thread
From: Felix Rosencrantz @ 2005-04-18 15:33 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 75 bytes --]
Adds pid completion to the p4 monitor (clear|terminate) commands.
-FR.
[-- Attachment #2: p4_diff.txt --]
[-- Type: text/plain, Size: 825 bytes --]
Index: Completion/Unix/Command/_perforce
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_perforce,v
retrieving revision 1.24
diff -u -r1.24 _perforce
--- Completion/Unix/Command/_perforce 12 Jan 2005 10:32:20 -0000 1.24
+++ Completion/Unix/Command/_perforce 18 Apr 2005 15:28:52 -0000
@@ -1311,6 +1311,15 @@
}
+(( $+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 @@
;;
(terminate|clear)
- _message "process ID"
+ _perforce_pids
;;
(*)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-18 15:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-18 15:33 PATCH: _perforce to add pid completion Felix Rosencrantz
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).