1#To run: ". bash_autocomplete.sh". The period and space is very, very important. ./ won't work. 2 3set -e 4set -u 5 6if [ -f "bash_autocomplete.sh" ]; 7then 8 relative_file="bash_autocomplete.sh" 9else 10 if [ -f "utils/bash_autocomplete.sh" ]; 11 then 12 relative_file="utils/bash_autocomplete.sh" 13 else 14 echo -e "\e[00;31mError:\e[00m Failed to find bash_autocomplete.sh. (You may need to navigate to the folder it's in.)" 15 exit 1 16 fi 17fi 18 19. ${relative_file} 20sudo rm -f /etc/bash_completion.d/frogatto 21sudo ln ${relative_file} /etc/bash_completion.d/frogatto 22echo -e "\e[00;32mSuccess:\e[00m Tab completion installed."