How do I make bash do vim-like tab completion for file names?

thebossman

I'd like for bash to rotate through the matching file names instead of listing them, like the default tab completion behavior in vim. Is there an easy command to do this? This is essentially the opposite of this question.

Dennis Williamson

Map Tab to menu-complete.

In your ~/.inputrc:

"\C-i": menu-complete

Re-read the file to make it effective in the current shell by pressing Ctrl-x Ctrl-r.

You can use the following command at a command prompt to enable the feature for the current session if you'd like to test it without editing the ~/.inputrc file, for example.

bind '"\C-i" menu-complete'

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How do I make Vim do normal (Bash-like) tab completion for file names?

How do I make bash completion behave like this?

How do I view the tab completion function for a command in bash?

How can I make zsh completion behave like Bash completion?

How do I make a button act like a link but on a new tab?

How do I restore tab-completion on shell variables on the bash command-line?

How do you make an alias or function that retains tab completion?

How do I change tab size in Vim?

How do I set Vim mapleader to <Tab>?

How do I create sequentially numbered file names in bash?

Eclipse tab completion deletes code - How do I prevent it?

How do I add tab completion to the Python shell?

How do I disable Emmet's tab completion in Atom?

How do I get tab completion to work with 'rake'?

How do I apply tab completion on a script from any directory?

How do I get zsh tab completion to "vi **/foo<TAB>" to match and complete the first file matching "foo*" anywhere under the current directory?

How to make zsh completion like bash

How do I make iOS 7 Control Center behave like it does in Maps (small tab)?

How can I make tab completion for my Git alias behave like an existing command?

How do I turn off or adjust the clever tab completion in Ubuntu (Programmable Completion)

How do I make Vim respect .editorconfig?

How do I make the shell to recognize the file names returned by a `ls -A` command, and these names contain spaces?

How Do I Enable Bash Programmable Completion for Command Line Switches?

How do I get bash completion to work with aliases?

How do I get bash completion for command aliases?

How do I defer shell completion to another command in bash and zsh?

Bash scripting - Asking user for input file, how to make tab-completion work?

How do I make listbox / listview like this

How do i make a component like this in react?