Adds filtering to history completion in bash