Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _pgrep: also complete pts/*



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