From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1810 invoked by alias); 4 Sep 2012 13:46:48 -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: 17222 Received: (qmail 21478 invoked from network); 4 Sep 2012 13:46:47 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at pjcj.net does not designate permitted sender hosts) Date: Tue, 4 Sep 2012 15:46:38 +0200 From: Paul Johnson To: Sayth Renshaw Cc: zsh-users@zsh.org Subject: Re: ZSH on ubuntu - bash completions Message-ID: <20120904134638.GE7216@pjcj.net> References: <20120901141059.GX7216@pjcj.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shark.h2hosting.com X-AntiAbuse: Original Domain - zsh.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pjcj.net On Sun, Sep 02, 2012 at 07:45:10AM +1000, Sayth Renshaw wrote: > On Sun, Sep 2, 2012 at 12:11 AM, Paul Johnson wrote: > > On Sat, Sep 01, 2012 at 08:20:52PM +1000, Sayth Renshaw wrote: > > > >> For installs that use Bash such as Pythonbrew, Perlbrew and Pythonz > >> how can I change to have them use ZSH instead? > > > > I don't know about python, but for perlbrew I have the following in my > > .zshrc: > > > > if [[ -e ~/perl5/perlbrew/etc/bashrc ]] then > > . ~/perl5/perlbrew/etc/bashrc # perlbrew > > pb() { TEST_JOBS=9 perlbrew "$@" } > > fi > > > > -- > > Paul Johnson - paul@pjcj.net > > http://www.pjcj.net > > Is that the default completion as you would use in Bash or did you > alter something to get it to work? Oops, sorry, I missed the completion part in the subject. My solution allows perlbrew to work in zsh. I haven't changed ~/perl5/perlbrew/etc/bashrc at all. It doesn't implement any completion. I didn't even know there was completion for it and had considered writing it myself. Fortunately, I don't need to: if [[ -e ~/perl5/perlbrew/etc/bashrc ]] then . ~/perl5/perlbrew/etc/bashrc . ~/perl5/perlbrew/etc/perlbrew-completion.bash fi With this completion works in zsh too. -- Paul Johnson - paul@pjcj.net http://www.pjcj.net