From 47e5e6e3d6424cf301bdb94f521ba53aaf44b273 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 13 Oct 2015 19:54:30 +0100 Subject: [PATCH] Fix a small bug with the SSH agent launch test. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 467f2e6..20e1197 100644 --- a/.bashrc +++ b/.bashrc @@ -89,7 +89,7 @@ function start_agent { } # Check if we already have an agent running and sourced -if [ -z "${SSH_AUTH_SOCK}" ]; then +if [ -z "${SSH_AUTH_SOCK}" -a -s "${PS1}" ]; then # Source SSH settings, if applicable if [ -f "${SSH_ENV}" ]; then . "${SSH_ENV}" > /dev/null