Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _pgrep: also complete pts/*
- X-seq: zsh-workers 29765
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: _pgrep: also complete pts/*
- Date: Sun, 11 Sep 2011 17:44:27 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=e5nkmPHu7H35a28EvtWpYNMz6K5TGaVpVdMogyENDF4=; b=b0IFjTW0J3xRpgQXMq6afhZf30wv4oPUvLL7Mis5WtKztU0GaqtxKxKV445lF9YbPX JbXWbJ2qM9jelT7tYG08ZKW2fYnFsJ6HgwLsSSmU0d9U37OyUexudZaNqUqdC+TVajzt VTnRtduUen3h7N8dXq8ZzO4LVfm6WUsgEqaL4=
- In-reply-to: <1315753989-1004-1-git-send-email-mikachu@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1315753989-1004-1-git-send-email-mikachu@gmail.com>
forgot i meant to do this too
---
Completion/Unix/Command/_pgrep | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Completion/Unix/Command/_pgrep b/Completion/Unix/Command/_pgrep
index 5757c6e..a4ecf85 100644
--- a/Completion/Unix/Command/_pgrep
+++ b/Completion/Unix/Command/_pgrep
@@ -33,10 +33,11 @@ case $state in
(tty)
compset -P '*,'
- local -a used
+ local -a used ttys
used=(${(s:,:)IPREFIX})
- _wanted tty expl 'terminal device' compadd -S ',' -q -F used /dev/tty*(:t)
+ ttys=( /dev/tty*(N) /dev/pts/*(N) )
+ _wanted tty expl 'terminal device' compadd -S ',' -q -F used ${ttys#/dev/}
;;
(sid)
--
1.7.5.4
Messages sorted by:
Reverse Date,
Date,
Thread,
Author