zsh-workers
 help / color / mirror / code / Atom feed
* New completion function
@ 2008-08-29 23:23 Richard Hartmann
  2008-08-29 23:33 ` Frank Terbeck
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Hartmann @ 2008-08-29 23:23 UTC (permalink / raw)
  To: zsh workers

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

Hi all,

no idea if aoss, an ALSA wrapper for old applications which still use OSS,
is used widely enough for this tiny function to be added to ZSH, but here
goes. Feel free to disregard & throw away :)


Richard

[-- Attachment #2: _aoss --]
[-- Type: application/octet-stream, Size: 73 bytes --]

#compdef aoss

_arguments \
       '(-):command name: _command_names -e'

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: New completion function
  2008-08-29 23:23 New completion function Richard Hartmann
@ 2008-08-29 23:33 ` Frank Terbeck
  2008-08-29 23:47   ` Richard Hartmann
  2008-08-30 11:39   ` Clint Adams
  0 siblings, 2 replies; 5+ messages in thread
From: Frank Terbeck @ 2008-08-29 23:33 UTC (permalink / raw)
  To: zsh workers

Richard Hartmann <richih.mailinglist@gmail.com>:
> no idea if aoss, an ALSA wrapper for old applications which still use OSS,
> is used widely enough for this tiny function to be added to ZSH, but here
> goes. Feel free to disregard & throw away :)

Shouldn't it be enough to add aoss to the #compdef line _precommand?

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: New completion function
  2008-08-29 23:33 ` Frank Terbeck
@ 2008-08-29 23:47   ` Richard Hartmann
  2008-08-30 11:39   ` Clint Adams
  1 sibling, 0 replies; 5+ messages in thread
From: Richard Hartmann @ 2008-08-29 23:47 UTC (permalink / raw)
  To: zsh workers

On Sat, Aug 30, 2008 at 01:33, Frank Terbeck <ft@bewatermyfriend.org> wrote:

> Shouldn't it be enough to add aoss to the #compdef line _precommand?

Yes, but I did not want/dare to

a) introduce Linux-specific stuff to ZSH main
b) clobber up a core file with a completion that is not near as important
as the rest (though I don't know rusage, never heard of it)


I would be happy with both solutions, though.


Richard


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: New completion function
  2008-08-29 23:33 ` Frank Terbeck
  2008-08-29 23:47   ` Richard Hartmann
@ 2008-08-30 11:39   ` Clint Adams
  2008-08-30 12:13     ` Richard Hartmann
  1 sibling, 1 reply; 5+ messages in thread
From: Clint Adams @ 2008-08-30 11:39 UTC (permalink / raw)
  To: zsh workers

On Sat, Aug 30, 2008 at 01:33:34AM +0200, Frank Terbeck wrote:
> Shouldn't it be enough to add aoss to the #compdef line _precommand?

Index: Completion/Zsh/Command/_precommand
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_precommand,v
retrieving revision 1.5
diff -u -r1.5 _precommand
--- Completion/Zsh/Command/_precommand	13 Apr 2006 02:46:50 -0000	1.5
+++ Completion/Zsh/Command/_precommand	30 Aug 2008 11:38:09 -0000
@@ -1,4 +1,4 @@
-#compdef - nohup eval time rusage noglob nocorrect exec catchsegv
+#compdef - nohup eval time rusage noglob nocorrect exec catchsegv aoss
 
 shift words
 (( CURRENT-- ))


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: New completion function
  2008-08-30 11:39   ` Clint Adams
@ 2008-08-30 12:13     ` Richard Hartmann
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Hartmann @ 2008-08-30 12:13 UTC (permalink / raw)
  To: zsh workers

On Sat, Aug 30, 2008 at 13:39, Clint Adams <clint@zsh.org> wrote:

> -#compdef - nohup eval time rusage noglob nocorrect exec catchsegv
> +#compdef - nohup eval time rusage noglob nocorrect exec catchsegv aoss

Thanks :)


Richard


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-30 12:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-29 23:23 New completion function Richard Hartmann
2008-08-29 23:33 ` Frank Terbeck
2008-08-29 23:47   ` Richard Hartmann
2008-08-30 11:39   ` Clint Adams
2008-08-30 12:13     ` Richard Hartmann

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).