From ae61e8a513d5b85ec10a8d4443f8d085c2ed9bea Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Tue, 21 Jan 2014 14:00:31 +0100 Subject: [PATCH] Comments on ssh-agent and realpath --- .profile | 3 ++- .scripts/realpath | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.profile b/.profile index 0659310b..e3a52dc0 100644 --- a/.profile +++ b/.profile @@ -124,7 +124,8 @@ command -v dwb >/dev/null 2>&1 && export BROWSER="dwb" ## SSH-Agent ## WARNING: this is insecure on machines where someone else has root access. command -v ssh-agent >/dev/null 2>&1 && eval "$(ssh-agent)" -## Kill ssh-agent on session end. +## Kill ssh-agent on session end. WARNING: this does not seem to work with some +## login managers. trap 'test -n "$SSH_AGENT_PID" && eval $(ssh-agent -k)' 0 ## Set TEMP dir if you want to override /tmp for some applications that check diff --git a/.scripts/realpath b/.scripts/realpath index b2080dd8..a184f288 100755 --- a/.scripts/realpath +++ b/.scripts/realpath @@ -1,5 +1,6 @@ #!/bin/sh -## This is a compatibility wrapper for 'realpath'. +## This is a compatibility wrapper for 'realpath'. This script is not seen if +## the parent folder is after /usr/{local/}bin in PATH. if command -v greadlink >/dev/null 2>&1; then ## On BSD systems, we might have greadlink