Home > Back-end >  Disable initial command name autocompletion Git Bash
Disable initial command name autocompletion Git Bash

Time:03-15

When I have a blank prompt, if I press tab then the console freezes while it gets all available commands that start with "". Is there a way to disable this? I still want to have autocompletion when typing files, but Bash seems to search PATH for all files in every directory. I know this because if I press tab twice and wait for about ~5 minutes, I get a "Display all 4487 possibilities? (y/n) " prompt.

CodePudding user response:

You can use -E of complete :

empty_command_completion(){ :; }
complete -E -F empty_command_completion
  • Related