From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14619 invoked by alias); 23 Apr 2013 21:22:07 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17762 Received: (qmail 27210 invoked from network); 23 Apr 2013 21:22:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, HTML_MESSAGE,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.172 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=v9cqAXibyR4JRE/0pDrEMtkault124u/j6sdZSSfc7A=; b=v4CBkouWGFVhq374Nosc1CeTStlBduUFJzIuW27cGtWO2agb4QKc7baCWaT2Nfk7fk zpfGc06n2oaY1FiQu+3QWm5pxbS/xe4ddhwJOQUAeW36u+pODP15LmvEUHlm/hrnr7At mLf6XsU/wOpMYfmw5sxk6hTdJG5Vop4JZF8Su+qResBJWZbBMVQV9gWgc1ooXwHEFkDQ FqUE5Je/x2xd3awy6VQpfYVeHasLgU0hfWEBDaMPtC7ptGVDd32/HVkp+ATUeIj85rCp b5wHvhc1rxWP5LOXmgMfWHJsBAPJMETKX/rl1VFqMqWIvCR6monPcZLqtfawRdrOft0+ h/fg== MIME-Version: 1.0 X-Received: by 10.58.188.82 with SMTP id fy18mr12317733vec.41.1366752119221; Tue, 23 Apr 2013 14:21:59 -0700 (PDT) Sender: rtmclay@gmail.com Date: Tue, 23 Apr 2013 16:21:59 -0500 X-Google-Sender-Auth: STqCttHEQ47VDiRp5bxn9WCn_Eg Message-ID: Subject: How does a new software package provide Zsh tab completion scripts to users? From: Robert McLay To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=089e011847fa9022f204db0dc66b --089e011847fa9022f204db0dc66b Content-Type: text/plain; charset=ISO-8859-1 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. --089e011847fa9022f204db0dc66b--