mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Add a symlink for SSH_AUTH_SOCK remotely.
This commit is contained in:
7
dotfiles/ssh/rc
Executable file
7
dotfiles/ssh/rc
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
REMOTE_LINK="${HOME}/.ssh/remote_agent.sock"
|
||||
|
||||
if test \! -L "${REMOTE_LINK}" -a -n "${SSH_AUTH_SOCK}" ; then
|
||||
ln -sf "${SSH_AUTH_SOCK}" "${REMOTE_LINK}"
|
||||
fi
|
||||
Reference in New Issue
Block a user