Quantcast
Channel: How can I make bash tab completion behave like vim tab completion and cycle through matching matches? - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by joeytwiddle for How can I make bash tab completion behave like vim tab completion and cycle through matching matches?

$
0
0

For bash >= 4 you might like these settings:

# If there are multiple matches for completion, Tab should cycle through them

bind 'TAB':menu-complete

# Display a list of the matching files

bind "set show-all-if-ambiguous on"

# Perform partial completion on the first Tab press,
# only start cycling full results on the second Tab press

bind "set menu-complete-display-prefix on"

This setup is similar to Vim's set wildmode=longest:full:list,full

I pulled these settings from this question on the Unix & Linux site.


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>