Mercurial > index.cgi > dotfiles
comparison .sleep @ 52:3f489fba24de
* Added ~/.sleep which runs at sleep time w/ sleepwatcher on the Macs
author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
---|---|
date | Fri, 03 Jun 2011 20:30:07 +0000 |
parents | |
children | 2f9a3b4b6a01 |
comparison
equal
deleted
inserted
replaced
51:44c36681ca0f | 52:3f489fba24de |
---|---|
1 #!/bin/bash | |
2 # first, don't inherit a socket (sleepwatcher doesn't get the user's env) | |
3 SSH_AUTH_SOCK= | |
4 | |
5 # find some sockets | |
6 for sock in /tmp/launch-*/Listeners; do | |
7 if [ -w $sock ]; then | |
8 echo "Trying to remove keys from socket $sock" | |
9 SSH_AUTH_SOCK=$sock ssh-add -D | |
10 fi | |
11 done |