Avoid binding key in bash without a terminal