Script for context-aware bash shell autocomplete Copy the file mycomplete.bash to somewhere like ~/configs and add the following line to your .bashrc: source ~/configs/mycomplete.bash