From: Paul Johnson <paul@pjcj.net>
To: Sayth Renshaw <flebber.crue@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: ZSH on ubuntu - bash completions
Date: Tue, 4 Sep 2012 15:46:38 +0200 [thread overview]
Message-ID: <20120904134638.GE7216@pjcj.net> (raw)
In-Reply-To: <CAN2of02W-aMVzq8zQ9C--ikdDv2FAYJOmUkEVw=EOSD=541PEg@mail.gmail.com>
On Sun, Sep 02, 2012 at 07:45:10AM +1000, Sayth Renshaw wrote:
> On Sun, Sep 2, 2012 at 12:11 AM, Paul Johnson <paul@pjcj.net> 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
prev parent reply other threads:[~2012-09-04 13:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-01 10:20 Sayth Renshaw
2012-09-01 14:11 ` Paul Johnson
2012-09-01 21:45 ` Sayth Renshaw
2012-09-04 13:46 ` Paul Johnson [this message]
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=20120904134638.GE7216@pjcj.net \
--to=paul@pjcj.net \
--cc=flebber.crue@gmail.com \
--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).