up vote 3 down vote favorite
1
share [g+] share [fb]

Possible Duplicate:
Tab-completion with directories/links

when I've a symlink foo linking to a directory bar/ and I start typing f and hit tab, it completes to foo but I'd like to complete it to foo/ so I can immediately add the next character for further completes. How can I do that?

link|improve this question

feedback

closed as exact duplicate by studiohack Apr 16 '11 at 18:42

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ.

2 Answers

up vote 3 down vote accepted

Enable the mark-symlinked-directories option for readline.

  1. Edit ~/.inputrc:

    set mark-symlinked-directories on
    
  2. Press C-x, C-r to reload the settings.

See section READLINE in the manual page of bash for further documentation.

link|improve this answer
feedback

I don't know if you can do it exactly as you've described, but if you hit tab twice, it should complete the exapansion.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.