From 5257725a34b82f188b77bf39d4329c375f2a625f Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 16 Feb 2016 20:17:41 +0000 Subject: [PATCH] Remove fully-qualified paths from SSH commands. --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index c6c7a49..0f225d6 100644 --- a/.bashrc +++ b/.bashrc @@ -89,11 +89,11 @@ SSH_ENV="$HOME/.ssh/environment" function start_agent { echo -n "Initialising new SSH agent... " - /usr/bin/ssh-agent 2> /dev/null | sed 's/^echo/#echo/' > "${SSH_ENV}" + ssh-agent 2> /dev/null | sed 's/^echo/#echo/' > "${SSH_ENV}" pgrep ssh-agent > /dev/null && echo "succeeded" || echo "failed" chmod 0600 "${SSH_ENV}" . "${SSH_ENV}" > /dev/null - /usr/bin/ssh-add ~/.ssh/scott_dsa + ssh-add ~/.ssh/scott_dsa } # Check if we already have an agent running and sourced