zsh-users
 help / color / mirror / code / Atom feed
* ZSH on ubuntu - bash completions
@ 2012-09-01 10:20 Sayth Renshaw
  2012-09-01 14:11 ` Paul Johnson
  0 siblings, 1 reply; 4+ messages in thread
From: Sayth Renshaw @ 2012-09-01 10:20 UTC (permalink / raw)
  To: zsh-users

For installs that use Bash such as Pythonbrew, Perlbrew and Pythonz
how can I change to have them use ZSH instead?

With Pythonbrew I have followed the standard install of curl and then
adding the line to ~/.bashrc but it will return an unknown command in
a new zsh terminal.

[[ -s $HOME/.pythonbrew/etc/bashrc ]] && source
$HOME/.pythonbrew/etc/bashrc  - from the pythonbrew readme
https://github.com/utahta/pythonbrew#readme

I treid making the initial command

curl -kL xrl.us/pythonbrewinstall | zsh

But that doesn't work.Also put the command into zshrc [[ -s
$HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc
 but that doesn't work either. Any ideas?

Thanks

Sayth


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

* Re: ZSH on ubuntu - bash completions
  2012-09-01 10:20 ZSH on ubuntu - bash completions Sayth Renshaw
@ 2012-09-01 14:11 ` Paul Johnson
  2012-09-01 21:45   ` Sayth Renshaw
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Johnson @ 2012-09-01 14:11 UTC (permalink / raw)
  To: Sayth Renshaw; +Cc: zsh-users

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


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

* Re: ZSH on ubuntu - bash completions
  2012-09-01 14:11 ` Paul Johnson
@ 2012-09-01 21:45   ` Sayth Renshaw
  2012-09-04 13:46     ` Paul Johnson
  0 siblings, 1 reply; 4+ messages in thread
From: Sayth Renshaw @ 2012-09-01 21:45 UTC (permalink / raw)
  To: Paul Johnson; +Cc: zsh-users

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?

Sayth


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

* Re: ZSH on ubuntu - bash completions
  2012-09-01 21:45   ` Sayth Renshaw
@ 2012-09-04 13:46     ` Paul Johnson
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Johnson @ 2012-09-04 13:46 UTC (permalink / raw)
  To: Sayth Renshaw; +Cc: zsh-users

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


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

end of thread, other threads:[~2012-09-04 13:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-01 10:20 ZSH on ubuntu - bash completions Sayth Renshaw
2012-09-01 14:11 ` Paul Johnson
2012-09-01 21:45   ` Sayth Renshaw
2012-09-04 13:46     ` Paul Johnson

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