Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#99095: Process completion for gdb
- X-seq: zsh-workers 14614
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#99095: Process completion for gdb
- Date: Thu, 31 May 2001 10:07:51 -0400
- Cc: Matt Zimmerman <mdz@xxxxxxxxxx>, 99095-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <20010530204009.C3810@xxxxxxxxx>; from mdz@xxxxxxxxxx on Wed, May 30, 2001 at 08:40:11PM -0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010528201016.A16176@xxxxxxxxx> <20010529104252.B403@xxxxxxxx> <20010529134715.R27012@xxxxxxxxx> <20010530104751.A28439@xxxxxxxx> <20010530204009.C3810@xxxxxxxxx>
> This works for me. In fact, I've set:
>
> zstyle ':completion:*:complete:*:*:processes' command 'ps ux'
>
> Since this is usually what I want (and the information from 'ps u' makes it
> easier to find the desired process)
>
> For gdb specifically, this isn't as useful as it might be. Since filenames are
> completed as well, the process list will often scroll off the screen when run
> from a directory full of source code and object files. Maybe the filename
> match should be restricted to '{,*.}core'?
We could do this to _gdb
50c50
< _alternative 'files:: _files' "processes:: _pids -m ${w[1]:t}"
---
> _alternative "core-files:: _files -g '*core'" 'files:: _files' "processes:: _pids -m ${w[1]:t}"
and then you could set zstyle ':completion:*:complete:gdb:*' tag-order 'processes core-files'
What do people think?
> Or perhaps to have some portable and extensible mechanism for selecting
> processes. I would say that at least these should be supported:
>
> - All of a user's processes (ps x, ps -u user), for most uses
> - All of everyone's processes (ps ax, ps -e), for root
> - Some formatting options (ps u, ps -f) for more verbosity
The problem is accurately determining whether ps is SYSV- or BSD-style or
something else entirely.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author