Be more specific on grabbing the SSH_AUTH_SOCK

master
Evan Purkhiser 12 years ago
parent 47e673d9f5
commit 01546d6096

@ -21,7 +21,7 @@ else
export XDG_RUNTIME_DIR=/run/user/$(id -u) export XDG_RUNTIME_DIR=/run/user/$(id -u)
# Get the SSH_AUTH_SOCK variable from the user session # Get the SSH_AUTH_SOCK variable from the user session
export $(systemctl --user show-environment | grep SSH_AUTH_SOCK) export $(systemctl --user show-environment | grep ^SSH_AUTH_SOCK=)
# Ensure the ssh-agent service is started # Ensure the ssh-agent service is started
systemctl --user start ssh-agent systemctl --user start ssh-agent

Loading…
Cancel
Save