Fixing my #1 bash annoyance

Ever open up a Terminal window and hit Tab and Bash sits for a few seconds until it finally comes back and asks

Display all 2224 possibilities? (y or n)

Because it went and compiled a list of EVERY executable you could possibly want to execute?

Yeah, me, too, and I hate it. The fix is simple. Add this to your ~/.bashrc

shopt -s no_empty_cmd_completion

No more completion on nothing!



Raffaello said:

My prompt shows more possibilities. :p

Maybe the problem is that the history file was not updated while logout. You could try adding the .bash_logout file and the line:
"history > .bash_history" in this file.

Leave a comment

About this Entry

This page contains a single entry by Andy Lester published on July 19, 2010 1:54 PM.

Handling multiple SSH keys in your SSH config was the previous entry in this blog.

Low-tech high-speed OS X program launching is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Other Perl Sites

Other Swell Blogs

  • geek2geek: An ongoing analysis of how geeks communicate, how we fail and how to fix it.