Comments on ssh-agent and realpath

master
Pierre Neidhardt 2014-01-21 14:00:31 +01:00
parent c586fc8eec
commit ae61e8a513
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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