* Package auto-suggestion under Debian/Ubuntu ?
@ 2010-08-03 13:14 Julien Nicoulaud
2010-08-03 13:38 ` Frank Terbeck
2010-08-03 14:40 ` Claus Albøge
0 siblings, 2 replies; 5+ messages in thread
From: Julien Nicoulaud @ 2010-08-03 13:14 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 399 bytes --]
Hi all,
One small thing I like with Bash is that auto-suggests packages when you try
to use an unknown command, like this:
$ eclipse
The program 'eclipse' is currently not installed. You can install it by
> typing:
sudo apt-get install eclipse-platform
In Zsh, I just get:
% eclipse
zsh: command not found: eclipse
Does anyone how to get this working with Zsh ?
Thanks,
Julien Nicoulaud
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Package auto-suggestion under Debian/Ubuntu ?
2010-08-03 13:14 Package auto-suggestion under Debian/Ubuntu ? Julien Nicoulaud
@ 2010-08-03 13:38 ` Frank Terbeck
2010-08-03 13:55 ` Julien Nicoulaud
2010-08-03 14:40 ` Claus Albøge
1 sibling, 1 reply; 5+ messages in thread
From: Frank Terbeck @ 2010-08-03 13:38 UTC (permalink / raw)
To: Julien Nicoulaud; +Cc: zsh-users
Julien Nicoulaud wrote:
> One small thing I like with Bash is that auto-suggests packages when you try
> to use an unknown command, like this:
>
> $ eclipse
>
> The program 'eclipse' is currently not installed. You can install it by
>> typing:
>
> sudo apt-get install eclipse-platform
>
>
> In Zsh, I just get:
>
> % eclipse
>
> zsh: command not found: eclipse
Ubuntu's global bashrc probably uses the command-not-found program
provided by the command-not-found package. It uses bash's
command_not_found_handle() function. See `/etc/bash.bashrc' for details.
Zsh has a similar facility, which is the command_not_found_handler()
function. See
% man zshmisc | less -p "COMMAND EXECUTION"
for details.
Regards, Frank
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Package auto-suggestion under Debian/Ubuntu ?
2010-08-03 13:38 ` Frank Terbeck
@ 2010-08-03 13:55 ` Julien Nicoulaud
0 siblings, 0 replies; 5+ messages in thread
From: Julien Nicoulaud @ 2010-08-03 13:55 UTC (permalink / raw)
To: Frank Terbeck; +Cc: zsh-users
[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]
Thanks for the heads up Frank !
Copying the one from /etc/bash.bashrc an adapting the function name works
perfectly (ie http://gist.github.com/506405 for the lazy)
Regards,
Juliien
2010/8/3 Frank Terbeck <ft@bewatermyfriend.org>
> Julien Nicoulaud wrote:
> > One small thing I like with Bash is that auto-suggests packages when you
> try
> > to use an unknown command, like this:
> >
> > $ eclipse
> >
> > The program 'eclipse' is currently not installed. You can install it by
> >> typing:
> >
> > sudo apt-get install eclipse-platform
> >
> >
> > In Zsh, I just get:
> >
> > % eclipse
> >
> > zsh: command not found: eclipse
>
> Ubuntu's global bashrc probably uses the command-not-found program
> provided by the command-not-found package. It uses bash's
> command_not_found_handle() function. See `/etc/bash.bashrc' for details.
>
> Zsh has a similar facility, which is the command_not_found_handler()
> function. See
>
> % man zshmisc | less -p "COMMAND EXECUTION"
>
> for details.
>
> Regards, Frank
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Package auto-suggestion under Debian/Ubuntu ?
2010-08-03 13:14 Package auto-suggestion under Debian/Ubuntu ? Julien Nicoulaud
2010-08-03 13:38 ` Frank Terbeck
@ 2010-08-03 14:40 ` Claus Albøge
2010-08-04 8:32 ` Julien Nicoulaud
1 sibling, 1 reply; 5+ messages in thread
From: Claus Albøge @ 2010-08-03 14:40 UTC (permalink / raw)
To: Julien Nicoulaud; +Cc: zsh-users
Hi,
Julien Nicoulaud <julien.nicoulaud@gmail.com> writes:
> Hi all, One small thing I like with Bash is that auto-suggests
> packages when you try to use an unknown command, like this:
>
> $ eclipse
>
> The program 'eclipse' is currently not installed. You can install it by
>> typing:
>
> sudo apt-get install eclipse-platform
>
>
> In Zsh, I just get:
>
> % eclipse
>
> zsh: command not found: eclipse
>
>
> Does anyone how to get this working with Zsh ?
Should work on any Ubuntu since Hardy:
% sudo apt-get install command-not-found
% grep zsh /usr/share/doc/command-not-found/README
To use it in zsh, please add the following line to your .zshrc file:
. /etc/zsh_command_not_found
/Claus A
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Package auto-suggestion under Debian/Ubuntu ?
2010-08-03 14:40 ` Claus Albøge
@ 2010-08-04 8:32 ` Julien Nicoulaud
0 siblings, 0 replies; 5+ messages in thread
From: Julien Nicoulaud @ 2010-08-04 8:32 UTC (permalink / raw)
To: Claus Albøge; +Cc: zsh-users
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]
Even better, thank you.
2010/8/3 Claus Albøge <csa@csa-net.dk>
> Hi,
>
> Julien Nicoulaud <julien.nicoulaud@gmail.com> writes:
>
> > Hi all, One small thing I like with Bash is that auto-suggests
> > packages when you try to use an unknown command, like this:
> >
> > $ eclipse
> >
> > The program 'eclipse' is currently not installed. You can install it by
> >> typing:
> >
> > sudo apt-get install eclipse-platform
> >
> >
> > In Zsh, I just get:
> >
> > % eclipse
> >
> > zsh: command not found: eclipse
> >
> >
> > Does anyone how to get this working with Zsh ?
>
> Should work on any Ubuntu since Hardy:
>
> % sudo apt-get install command-not-found
> % grep zsh /usr/share/doc/command-not-found/README
> To use it in zsh, please add the following line to your .zshrc file:
> . /etc/zsh_command_not_found
>
>
> /Claus A
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-08-04 8:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-03 13:14 Package auto-suggestion under Debian/Ubuntu ? Julien Nicoulaud
2010-08-03 13:38 ` Frank Terbeck
2010-08-03 13:55 ` Julien Nicoulaud
2010-08-03 14:40 ` Claus Albøge
2010-08-04 8:32 ` Julien Nicoulaud
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).