Command line auto complete

Discussion in 'Linux' started by malmjako, Oct 6, 2008.

  1. malmjako

    malmjako

    Joined:
    Aug 26, 2008
    Messages:
    16
    Likes Received:
    0
    Is there a way to get more extended auto completion on the command line, like Ubuntu has it? E.g. when trying to install packages with yum, I would like to be able to get the package names completed by pressing tab.
     
    malmjako, Oct 6, 2008
    #1
  2. malmjako

    cpchan

    Joined:
    Sep 22, 2008
    Messages:
    201
    Likes Received:
    0
    Install the package bash-completion
     
    cpchan, Oct 6, 2008
    #2
  3. malmjako

    malmjako

    Joined:
    Aug 26, 2008
    Messages:
    16
    Likes Received:
    0
    Thanks! That seems to work. Any way to speed up completion of yum packages?
     
    malmjako, Oct 7, 2008
    #3
  4. malmjako

    cpchan

    Joined:
    Sep 22, 2008
    Messages:
    201
    Likes Received:
    0
    No problem.

    No. The programmable bash completion:

    http://www.faqs.org/docs/bashman/bashref_103.html

    for yum using the command:

    Code:
    yum -C list
    to get a complete list of packages from the cache. This is very slow- try it from the command line. So unless we can find quicker command to list all packages, you just have to live with the speed.
     
    cpchan, Oct 8, 2008
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.