zsh-users
 help / color / mirror / code / Atom feed
From: Robert McLay <mclay@tacc.utexas.edu>
To: zsh-users@zsh.org
Subject: How does a new software package provide Zsh tab completion scripts to users?
Date: Tue, 23 Apr 2013 16:21:59 -0500	[thread overview]
Message-ID: <CAAH8Jevr7tJj1RzzFupRSsUach-cnzCe3kVbd+6zLsA_TD=dLQ@mail.gmail.com> (raw)

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

             reply	other threads:[~2013-04-23 21:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-23 21:21 Robert McLay [this message]
2013-04-23 22:15 ` Phil Pennock
2013-04-24  9:00 ` Peter Stephenson
2013-04-24 14:05   ` Valodim Skywalker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAH8Jevr7tJj1RzzFupRSsUach-cnzCe3kVbd+6zLsA_TD=dLQ@mail.gmail.com' \
    --to=mclay@tacc.utexas.edu \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).