diff options
| author | Felix Rosencrantz <f_rosencrantz@users.sourceforge.net> | 2005-04-18 15:48:05 +0000 |
|---|---|---|
| committer | Felix Rosencrantz <f_rosencrantz@users.sourceforge.net> | 2005-04-18 15:48:05 +0000 |
| commit | 9d43c7653b019ebb21560193f78e49d6c0e05a51 (patch) | |
| tree | 3efac4af3ddeb29061a76a49a075a797e66a3a8a /Completion/Unix/Command/_perforce | |
| parent | * 21153: incorporate most of the features of Stephen Rueger's (diff) | |
| download | zsh-9d43c7653b019ebb21560193f78e49d6c0e05a51.tar zsh-9d43c7653b019ebb21560193f78e49d6c0e05a51.tar.gz zsh-9d43c7653b019ebb21560193f78e49d6c0e05a51.tar.bz2 zsh-9d43c7653b019ebb21560193f78e49d6c0e05a51.tar.lz zsh-9d43c7653b019ebb21560193f78e49d6c0e05a51.tar.xz zsh-9d43c7653b019ebb21560193f78e49d6c0e05a51.tar.zst zsh-9d43c7653b019ebb21560193f78e49d6c0e05a51.zip | |
21154 - Added pid completion to _perforce for p4 monitor (clear|terminate) commands.
Diffstat (limited to 'Completion/Unix/Command/_perforce')
| -rw-r--r-- | Completion/Unix/Command/_perforce | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce index 3455d0cf9..f9bad2a24 100644 --- a/Completion/Unix/Command/_perforce +++ b/Completion/Unix/Command/_perforce @@ -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 ;; (*) |
