PYENV prompt.
[profile.git] / .profile.d / ssh.bashrc
index 0bb5011..65d117d 100644 (file)
@@ -6,7 +6,7 @@ if [ $UID -gt 0 ]; then
       while read allowed; do
         if [ "${HOSTNAME%%.*}" = "$allowed" ]; then
           eval $(keychain -q --timeout 7200 --agents ssh --eval)
-          if tty -s; then
+          if [ -t 0 ]; then
             ssh-add -l >/dev/null || ssh-add
           fi
         fi