Skip to content

Commit

Permalink
If ~/.ssh doesn't exist, create it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Lhotsky committed Oct 10, 2014
1 parent c76776b commit 227166a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bash.d/40-fix-ssh-auth-sock.sh
@@ -1,4 +1,7 @@
# Fix SSH auth socket location so agent forwarding works with tmux
if ! test -d ~/.ssh; then
mkdir -m 0700 ~/.ssh
fi
if test "$SSH_AUTH_SOCK" ; then
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
fi

0 comments on commit 227166a

Please sign in to comment.