[newbie] Auto-completion for the command line

2004-08-11 Thread Paul Smith
Dear All
Is there some program to provide auto-completion for the command line 
(bash)?

Thanks in advance,
Paul


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Auto-completion for the command line

2004-08-11 Thread Mikkel L. Ellertson
Paul Smith wrote:
Dear All
Is there some program to provide auto-completion for the command line 
(bash)?

Thanks in advance,
Paul
What exactly are you looking for?  There is built in auto-completion in 
Bash already.  Type part of a command, file name, or directory name, and 
hit Tab.   It will complete the entry to the point where you have more 
then one choice.  Hit Tab again to see the options, or type the next 
letter and hit Tab again.

If you want to see a LONG list, hit Tab twice at the command prompt, 
before typing anything.

Mikkel
--
   Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Auto-completion for the command line

2004-08-11 Thread Paul Smith
Mikkel L. Ellertson wrote:
Is there some program to provide auto-completion for the command line 
(bash)?

What exactly are you looking for?  
Thanks, Mikkel. I looking for a way of getting auto-completion according 
to history. For instance, one types

ftp ftp.in.nowhere.com
and when, afterwards, one types
ftp ftp.i
the mechanism of auto-completion should write
ftp ftp.in.nowhere.com
for you.
Is it clear now?
Paul


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Auto-completion for the command line

2004-08-11 Thread Todd Slater
On Wed, Aug 11, 2004 at 03:47:26PM +0100, Paul Smith wrote:
 Mikkel L. Ellertson wrote:
 Is there some program to provide auto-completion for the command line 
 (bash)?
 
 What exactly are you looking for?  
 
 Thanks, Mikkel. I looking for a way of getting auto-completion according 
 to history. For instance, one types
 
 ftp ftp.in.nowhere.com
 
 and when, afterwards, one types
 
 ftp ftp.i
 
 the mechanism of auto-completion should write
 
 ftp ftp.in.nowhere.com
 
 for you.
 
 Is it clear now?
 
 Paul

Google is your friend.

The up arrow key will cycle through bash commands in history.

Contol+r start typing command will search bash history and autocomplete
for you.

See http://tinyurl.com/7xaxn which was found from
http://tinyurl.com/3sbp5.

-- 
Name that tune #11: What if the artists ran the TV, all the ads would be
for fine scotch whisky Glenfiddich, Glenlivet, the whole single malt
family.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Auto-completion for the command line

2004-08-11 Thread Clint Harshaw
Todd Slater wrote:
[...]
Thanks, Mikkel. I looking for a way of getting auto-completion according 
to history. For instance, one types

ftp ftp.in.nowhere.com
and when, afterwards, one types
ftp ftp.i
the mechanism of auto-completion should write
ftp ftp.in.nowhere.com
for you.
Is it clear now?
Paul

Google is your friend.
The up arrow key will cycle through bash commands in history.
Contol+r start typing command will search bash history and autocomplete
for you.
See http://tinyurl.com/7xaxn which was found from
http://tinyurl.com/3sbp5.
Another of my favorites especially when I can't remember the command I 
typed a long time ago, goes something like this (assuming I want the 
command related to a keyword, and my memory is -- not surprisingly -- 
bad on the syntax):

$ history | grep keyword
Here are a couple of examples of output from that command:
190 keyword barney fred
201 keyword -v fred wilma
then if I want to run the second of those two commands that I previously 
ran, I can do so simply by typing:
$ !201

Hope this helps,
Clint


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Auto-completion for the command line

2004-08-11 Thread Paul Smith
Todd Slater wrote:
Is there some program to provide auto-completion for the command line 
(bash)?
What exactly are you looking for?  
Thanks, Mikkel. I looking for a way of getting auto-completion according 
to history. 
Contol+r start typing command will search bash history and autocomplete
for you.
Thanks, Todd. Control+r does precisely what I want.
Paul


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Auto-completion for the command line

2004-08-11 Thread Josenildo Marques
Em Qua, 2004-08-11 s 11:06, Paul Smith escreveu:
 Dear All
 
 Is there some program to provide auto-completion for the command line 
 (bash)?
 
 Thanks in advance,
 
 Paul

urpmi bash-completion

HTH
-- 
Josenildo Marques 
ICQ 289971493 +++ Homepage http://cyb.ezdir.net 
usurio Linux registrado No. 341648 
** 
A imaginao  mais importante que o conhecimento. Albert Einstein



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Auto-completion for the command line

2004-08-11 Thread Tom Brinkman
On Wednesday 11 August 2004 09:06 am, Paul Smith wrote:
 Dear All

 Is there some program to provide auto-completion for the
 command line (bash)?

 Thanks in advance,

 Paul

 'urpmi bash-completion'(??)

   Adds back in funtionality that those that are smarter than us 
think is useless ;(
-- 
  Tom Brinkman Corpus Christi, Texas
   Proud to be an American


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com