zsh-users
 help / color / mirror / code / Atom feed
* How does a new software package provide Zsh tab completion scripts to users?
@ 2013-04-23 21:21 Robert McLay
  2013-04-23 22:15 ` Phil Pennock
  2013-04-24  9:00 ` Peter Stephenson
  0 siblings, 2 replies; 4+ messages in thread
From: Robert McLay @ 2013-04-23 21:21 UTC (permalink / raw)
  To: zsh-users

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

I am the author of a software package and I'd like to provide Zsh tab
completion scripts for users of my package.   In particular my package is
Lmod.  It is updated tool to handle environment modules, similar to but not
exactly the same as the TCL/C based environment modules.  Its main
advantage is that makes dealing with multiple compilers and MPI stacks much
easier along with the dependent libraries and applications.

The problem is that Lmod is typically installed by system administrators
and not by users directly.   There is not a good way to tell the Zsh users
that there is tab completion scripts available.    I also do not think that
I'll get many site to put my zsh scripts in the system location.
Eventually if/when Lmod takes over the world (;->),  my completion scripts
will be in the standard zsh installation but until that day,  I'd like to
know what options are available.

To use Lmod, users must source something that defines a shell function.  In
this file, I could also prepend a directory to FPATH and do

    autoload -U compinit
    compinit -C

to make the Lmod completion available.  However  this seems like a bad
idea.  What if a Zsh user is not using tab completion?


Has this been discussed before?   I did some searching but was unable to
find anything.  I'm not sure what the right phrase would be.

Thanks for any thoughts,
R.

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

end of thread, other threads:[~2013-04-24 14:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-23 21:21 How does a new software package provide Zsh tab completion scripts to users? Robert McLay
2013-04-23 22:15 ` Phil Pennock
2013-04-24  9:00 ` Peter Stephenson
2013-04-24 14:05   ` Valodim Skywalker

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