Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 2
    Have you considered simply aliasing loc to localc? I suggest alternatives because after quite some time digging and searching I have not found a way to customize bash completion this way. It may not be possible. Commented Aug 5, 2014 at 20:47
  • @jw013 Yeah, I looked for a while and couldn't find anything either. I'm half expecting someone to suggest switching to zsh, too. At least if zsh does it, I can rest comfortably knowing the next version of bash will as well. 😀 Commented Aug 5, 2014 at 20:51
  • you have to press TAB twice and it will complete commands. Commented Oct 10, 2014 at 15:30
  • 1
    Won't that break all the other completions though? I mean, even if it is possible, you would no longer be able to get locate, locale, lockfile or any of the other expansions of loc. Perhaps a better approach would be to map a different key to that specific completion. Commented Oct 28, 2014 at 18:00
  • 1
    can you give an example of such context (that would lead to the desired effect to be loc<TAB>->localc )? Commented Nov 4, 2014 at 14:29