don't raise autocomplete warnings when not a TTY
Merge pull request #1 from mafrosis/not-a-tty

Don't raise autocomplete warnings when not a TTY