Bash – refresh bash tab completion

autocompletebash

I have a script for auto-completing my ssh-hosts. If I change my ~/.ssh/config the auto-completion is not updated automatically, though. This does not surprise me. In a new shell, the new entry is picked up and usable, of course.

How do I manually trigger a refresh of the completion in bash?

Best Answer

Try doing this :

exec bash

this will do the trick...

Related Question