Don't rely on tty.
authorIain Patterson <me@iain.cx>
Mon, 5 Aug 2013 14:02:31 +0000 (15:02 +0100)
committerIain Patterson <me@iain.cx>
Fri, 4 Oct 2013 11:08:28 +0000 (12:08 +0100)
commita35e8ca463e14772e3634291187553567bdc77f1
tree912e36c4afab56422e74b8fa386964b38eb4c6db
parentb3abab8e9a298891172dc896672efe857410ae98
Don't rely on tty.

The tty command may not always be available.  Use the builtin test -t 0.
.bash_profile
.bashrc