Bash: How can I get Ubuntu-style autocompletion?

A little background. When I used Ubuntu (up until maybe a week ago), almost all the commands had special autocompletion "rules" as I guess you might call them. For instance, I could type "sudo apt-get install libsdl", hit tab twice, and get a list of all the available packages related to libsdl.
How can I configure this in Arch?

Hi, check this link out: http://wiki.archlinux.org/index.php/Bas … Completion
Relevant part of .bashrc:
# enable auto completion on sudo commands
complete -cf sudo
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
Last edited by s3kt0r (2009-05-03 02:32:06)

Similar Messages

  • How can I get Firefox to autocomplete my username without my password?

    I need to enter a secure website with a password. I just want to enter the first letter of my username so it can autocomplete without my password showing up.

    Use form fill to store the user name.
    * Tools > Options > Privacy > History: "Remember search and form history"
    * https://support.mozilla.com/kb/Form+autocomplete

  • How can i get iPad calendar/contacts style for my iMac (lion)?

    how can i get my iMac (10.7.4) to use the VERY HANDY, MUCH FASTER iPad style calendar & contacts views?
    iPad3/new iPad - date bar w/ months & arrows at the bottom, day-week-month-year- & LIST option at top - THIS IS QUICK!!!
    iMac -sloowwww flip a month - OR click to view months -  click here to view date.....  even adding a month bar to quick click at top would be faster.
    it's also like this w/ contacts -
    iPad3/new iPad- QUICK alpha tabs on side that show name on left w/ info on right w/ QUICK contact options to message, FT, share. 
    iMac contacts - groups/or all - scroll to find/click names or search - no quick contact tabs like the iPad.
    Does anyone know how to incorporate the FAST features of the iPad3/new iPad to my iMac?
    Lack of these options must be an oversite and hopefully an update will soon be comming out implement these quick features across the board on all apple devices?!?!  Until then - any ideas?
    Quick, userfriendly... we all want that!

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.1.3. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
     Cheers, Tom

  • How can I get the link not to override my style sheet formatting?

    I have an html page with text that has a style sheet applied
    to it. When I insert a link into parts of the formatted text, the
    style sheet formatting is lost in the linked text (the text for
    mylars, shapes and number shapes becomes smaller: see code below).
    How can I get the link not to override my style sheet
    formatting?
    Here is the html code I am referring to:
    <span class="bodyheader20pt">Fall into winter's biggest
    celebration with our New Year's Day <a href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=A4&sc=184&PageNumbe r=1"
    style="text-decoration:none">mylars</a>, <a href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&sc=184&PageNumbe r=1"
    style="text-decoration:none">shapes</a>, and 2-0-0-9 <a
    href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&sc=166&PageNumbe r=1"
    style="text-decoration:none">number
    shapes</a>.</span>
    I am using Dreaweaver CS3 on a Mac running OSX
    10.4.11.

    Show us this rule --> bodyheader20pt?
    Also, having this in your three anchor tags -
    style="text-decoration:none" -
    will prevent your anchors from displaying any stylesheet
    style for
    text-decoration.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "ellfwar" <[email protected]> wrote in
    message
    news:geqiph$foq$[email protected]..
    >I have an html page with text that has a style sheet
    applied to it. When I
    > insert a link into parts of the formatted text, the
    style sheet formatting
    > is
    > lost in the linked text (the text for mylars, shapes and
    number shapes
    > becomes
    > smaller: see code below).
    >
    > How can I get the link not to override my style sheet
    formatting?
    >
    > Here is the html code I am referring to:
    > <span class="bodyheader20pt">Fall into winter's
    biggest celebration with
    > our
    > New Year's Day <a
    > href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=A4&
    > sc=184&PageNumber=1"
    style="text-decoration:none">mylars</a>, <a
    > href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&
    > sc=184&PageNumber=1"
    style="text-decoration:none">shapes</a>, and 2-0-0-9
    > <a
    > href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&
    > sc=166&PageNumber=1"
    style="text-decoration:none">number
    > shapes</a>.</span>
    >
    > I am using Dreaweaver CS3 on a Mac running OSX 10.4.11.
    >

  • I need in more lines of the Index some words in Bold text and some others in Kursiv text. How can i get it? It seems to me that either i can have all the Style in Bold Text or in Kursiv Text :(

    I need in more lines of the Index some words in Bold text and some others in Kursiv text. How can i get it? It seems to me that either I can edit a Style only in Bold Text or in Kursiv Text
    I make you an example to clear what I really need:
    Index
    Introduction
    I. Leonardo's Monnalisa
    II. Leonardo's Battaglia
    Bibliography
    Please HELP HELP HELP

    What version of Pages are you referring to?
    Basically if you are talking about the Table of Contents in Pages and want to have different character styles within paragraphs in the T.O.C. you will have to export the T.O.C. and bring it back in as text and change that.
    Peter

  • I have this bookmark icon down low near the trash can. How can I get rid of it? I am using Ubuntu 11.04.

    I have this bookmark icon down low near the trash can in Ubuntu 11.04. How can I get rid of it?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How can I get such a desktop style?

    Hello,
    yesterday I installed xorg and fluxbox the first time on my computer. Before I used arch linux only with console and because of that the style wasn't so important
    But now I want a nice Desktop with fluxbox and I found a picture from a really nice one:
    http://www.boxwhore.org/modules/wfdownl … /alssi.png
    I downloaded the the theme, but my terminal emulator isn't transparent! Which terminal emulator is used on this machine and how can I get it transparent?
    And which file manager ist that?
    An other newbie question:
    The font DejaVu Sans 9 is used on the desktop, which you can see on the picture! I configured xorg.conf to use freetype fonts but I don't know how I can change the font in fluxbox. At the moment my font size is to small. I want a larger size and a more eye candy font like "Dejavu Sans"
    Thanks for you hints!
    Greetings,
    Flasher

    SiD wrote:Don't know which terminal it is, maybe aterm...
    The Fluxbox menu (which clearly seems to be a homebrew one) states that it might be Eterm .

  • How can I get back my lighting styles?

    Hi,
    I took away all the lighting styles (17 of them) from my Photoshop Elements by mistake, not understanding that they would disappear
    completely. I cannot seem to find them anywhere on my coomputer any more. How can I get them back?

    Thank you for the answers so far. As to hatstead's link, I'll check that out. As to R Kelly's comments, yes, I am talking about the styles in Filter-Render-Lighting Effects (although my version is in Swedish). The problem is, I likely do not have another version at home or anywhere else, plus I am afraid I have thrown the disk away when cleaning (why did I ever do that? sigh!) - the program came with my desktop in 2007 and I never bothered much about it until I started playing with it lately - and then this mistake happened. I believed the "take away" button in lighting effects just meant that the style then on top would go away from the picture I was working on, but I was wrong...

  • How can I get the MS-DOS style filename?

    Hi all;
    How can I get the MS-DOS style filename from LabVIEW?
    I mean, in Windows if I have the following dir/file:
    "C:\My Documents\Misc Folder\text.txt"
    In MS-DOS style looks something like:
    "C:\MYDOCU~1\MISCFO~2\TEXT.TXT"
    Enrique
    www.vartortech.com

    A call to a kernel32.dll function does the job. See the attached VI.
    LabVIEW, C'est LabVIEW
    Attachments:
    GetShortPathA.vi ‏16 KB

  • HT201359 How can I get a refund for my purchased chips from bingo bash. I made an error.

    How can I get arefundfor my mistakes purchasing worth $109.99 worth of chips?i caniget a refund of whatever chips I didn't use . Thanks aida

    All sales are final.
    You can try contacting itunes support and asking for an exception:
    http://www.apple.com/support/itunes/contact/

  • How can I get Firefox to fill my screen? There are gaps in the top and bottom of my screen, thanks.

    I dropped my laptop recently and messed up the hard drive so after installing new hard drive I reloaded win 7 and Mozilla Firefox. When Firefox loads up there is a 1" plus gap on the top and a half inch gap at the bottom of all pages. How can I get the browser to fill the screen? Thanks.

    This website is using autocomplete=off to prevent Firefox from saving and filling the name and password.
    You can remove autocomplete=off with a bookmarklet to make Firefox save names and passwords and other form data.
    *http://kb.mozillazine.org/User_name_and_password_not_remembered

  • How can I get more than 5 items in my Recent Projects list?

    After a rather horrendous incident with trying to do a series of videos all in one project using bins and shared media and a savefile that got *WAYYY* out of hand (20 minutes to load the file)- which I believe was tied to importing media from another .proj file, I have switched to a more modular approach with anywhere from 2-5 projects in each project and now a collection of around 15-25 projects on the go. Most of these are "work on a chapter, then change to another project while waiting for footage for another project" and several of them share pieces including multicam segments and sync'd audio.
    Rather than importing from another project, I am using Control-C, switch to a different project file, then paste in. This isn't the most "Adobe Professional" style way of doing things, but considering that I lost several hours to trying to recover from the last project, even when I only needed to spend 20 minutes pumping out a rough cut, I'm not going back to that method until my next computer upgrade and until I begrudgingly switch to CC in around 1-1.5 year's time.
    So the issue that I'm faced with is that I'm often using the Open Recent Project flyout and having 5 projects on that list is just not enough to be remotely useful.
    In MS Office, the list is quite long and even in photoshop, I can get 10. That's enough for my Photoshop, but I switch projects using the Recent Projects list in Premiere a LOT more often. I could just use my explorer windows to jump around, but given that I have 5-6 explorer windows open per project most of which are folders crammed with footage, PSD stills and peak files, plus other non-video things I'm working on right now, that's really not the simplest way to navigate at a glance.
    How can I get 10, 20 or 25 items in that flyout list instead of mucking about with 5?
    I run Adobe Production Premium CS6.

    I see a lot of people not reading the circumstances of what I said.
    I did mention that currently I use the "explorer" method and it's kind of clumsy. Although I liked the idea of using shortcuts. I had thought about moving the files, but didn't think about shortcuts... considering everything on my desktop is a shortcut, I'm really not sure why I didn't think of that.
    But I did mention that I almost always have anywhere from 12-15 windows open at any given time in my explorer. I am involved with management of 4 different companies right now, two of which are in startup mode. Videos are important for me, but not my only duty. These windows only go down when I shut down my computer, which happens on average once every 4 months. It is not a problem on a reasonably capable system.
    Still, for a project of currently 23 files (just got increased to 28 and expected to rise to 32-35), and because I have had project files go sour on me, I keep some hierarchy and because I don't have 100% creative control over all my projects, I also occasionally have to do re-overs ie when a specific style of writ is nixed by a boss or customer. Those 23 project files also have version iterations.
    So navigating 'at a glance' through a file explorer isn't always the most practical.
    In the end, I'll probably try to find some time to re-organize my file structure using shortcuts.
    Still, given the number of 'recent files' can be modified or is larger than 5 in: Windows Start Menu, Recent documents, Adobe PDF recent documents, Adobe Photoshop, All Office suite programs...
    It's just weird that there's only 5 for a program intended for the kind of people that work on projects somewhat larger in scope than "hey, we took the dog to the park the other day".
    @Jerry Klaimon - not sure what version of Premiere you're using, I'm using CS6 with Production Premium CS6. Recent files only shows 5. Photoshop shows 9. For my current workload, I'd probably want 10-12 and it would be nice if they could go to 20 or more IMHO. Look at History states. History states default to 20. I usually set this to 35 whenever I set up any user's computer. It's easy to choose what suits me from the preferences menu. I don't see why they wouldn't have the same idea for 'recent files'
    @anyone who thinks I'm stupid - please feel free to insult me. A forum scuffle is often a great way to get the attention of moderators who might be in a position to pass this idea on to someone who could do something about it. I'm also anal, stubborn, holier-than-thou and not-as-smart-as-i-think-i-am if you want some ideas to get started .
    @Steven Gotz - you are quite correct that asking is important. Probably a smarter thing to do before pestering the devs with feature requests is to thoroughly check to see if it is in fact already existing. Adobe products are famous for having features that nobody knows about. Most of the questions I have that Google or Lynda.com didn't answer have been answered here in the forums. Then once I've seen that a few hundred pairs of eyes sharper than mine have also come up with nothing, then perhaps it might be worthwhile sending in a feature request. In this case, I will probably toss a feature request in later, but I'll probably just use your idea of keeping a master project folder with shortcuts.
    @MarkMapes - I do not have a problem loading files. Project files load just fine for me. But I have one project file that has a problem that loads a HUGE amount of RAM and takes nearly 20 minutes to open. It even takes almost 8 minutes to close it. It was acting as my master file with everything nested in sequences and I needed to spend a whole afternoon to pull those sequences out using copy-paste because bringing them in via Import Sequence brought the problem into the new file. I would file that under "glitched save files" rather than "slow loading".
    @Jon-M-Spear - good idea too - although I did cringe a bit at the suggestion of putting things on the desktop. I have bad habits and I work very hard to try to make other people who have worse habits in this company to try to get them to not keep anything on the desktop. In fact, it's probably my favorite thing about Windows 7 that you can have a clear or nearly totally clear desktop.
    Thanks for your comments folks.

  • My old computer has died, how can i get all my tunes on to my new computer and ipod?

    My old computer died and i can't get access to itunes on it. how can i get itunes on my new computer without wiping my ipod and having to start again from scratch?

    If the computer isn't functioning because of a operating system issue, but the computer itself still works, then it's possible to boot from a operating system on a cd or USB stick and transfer the files.
    If the boot drive physically works (and it hasn't been encrypted), the files can be removed if the computer doesn't work as well. (more on that later as it costs more money)
    For the first option your going to need to create a bootable USB or CD. I'm going to go with the easiest, a 2-4 GB USB thumb drive (nothing else on it of course)
    Visit this page and download the Easy USB Installer for Windows.
    http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
    Now from the first menu there you select Ubuntu 10.10 and check the box to download the ISO of Ubuntu Linux. Wait for it to finish.
    Now #2 browse to the ISO you just downloaded.
    Now #3 you select the EXACT drive letter of the USB (look under My Computer/Computer)
    Leave "show all drives" and "persistence" alone. Check "format drive" (be sure the drive letter is correct!)
    Click "Create"
    Once you got that done, stick the USB in the back of the computer (if a tower) and hook up a external USB hard drive. (nothing else on it.)
    Now you need to find the BIO's boot key for your problem computer, DELL it's F2 to enter the BIO's (list at link)
    http://pcsupport.about.com/od/fixtheproblem/a/biosaccess_pc.htm
    Navigate around in there and set the USB as the first boot option (or cd if you got a boot cd). Save the option.
    Reboot the computer and it should boot off the USB. "Try Ubuntu/run from USB/CD"  Don't install.
    Once your in Ubuntu, you can easily go to the Places Menu and Select Computer, see all the drives and access your ENTIRE iTunes folder. Transfer this entire folder to the external USB drive.
    Also you can grab your pictures and anyrthing else while your in there.
    Now the second option is potentially destructive, if the computer doesn't work at all mechanically. Disconnect any power from the computer. Then you can remove the internal hard drive, use a powered IDE/SATA to USB adapter and plug it right into your new computer just like a external drive. However I would do a malware scan first.
    Lastly if you got your iTunes Folder onto the new computer (replacing the new iTunes folder with the old). You need to open the XML file in a Text program that has "Find and Replace" ability. So you can correctly fix the partial pathnames from the old computer to the new computer.
    This little step preserves all your playlists.
    Once you got your content over, you should File > Backup Library to disk and feed it DVD-R's or use a external drive.
    As you know, the iPod only sync's content one way, to the iPod.  (exception for iTMS bought stuff on the iPod can be synced back into iTunes with the correct account enabled.)  You might need to check iLounge for current third party software that reverses all content form a iPod back into iTunes.
    Finally if this is all above your head, have a professional do it for you. Apple will not re-issue downloads, backing up is your responsibility.
    Hope that helps.

  • How can I get Apple Mail to show recipient's full name AND email address

    In Apple Mail v 6.3 (1503):
    I am sending an email to a recipient listed in my Contacts. The recipient has 3 or more email addresses listed in Contacts. I want to send the email to some or all of the addresses.
    As I start typing the guys name, the autocomplete feature gives me choices - ie.:  In the TO: field and I select the first one, then the 2nd and so on.
    However, what gets displayed in the TO: Box is this:
    Bill Clinton <[email protected]>
    Bill Clinton
    Bill Clinton
    Bill Clinton
    So, it is not displaying the address between the <       >.
    so how can I get all three addresses to display like the first one which shows both the name of the guy (as listed in contacts "FIRST" "LAST") and then the actual email address).
    For example I'd like it to show:
    Bill Clinton <[email protected]>
    Bill Clinton <[email protected]>
    Bill Clinton <[email protected]
    Bill Clinton <[email protected]>
    Any direction in this regard would be greatly appreciated.

    I'm not at my Mac to check, but try turning off Smart Addresses in the Viewing tab of Mail's Preferences.

  • Please help. How can I get rid of this red dotted border around my navigation bar images?

    If you go to my site here...
    http://metalwolf92.zymichost.com/
    And left-click and hold down your mouse, but don't release, on any of the navigation button images. Notice the red dotted border? How can I get rid of those?
    All images already have border set to 0.

    I just noticed your page has no css. so in Code View, replace this closing tag:
    </head>
    with this:
    <style type="text/css">
    a:active {
      outline: none;
    </style>
    </head>
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

Maybe you are looking for