Re: [dev] ssh-agent stanza in POSIX shell

2011-10-30 Thread Patrick Haller
On 2011-10-30 20:04, Sime Ramov wrote: > I've found the following clever ssh-agent stanza in Richard Crowley's > `.profile`[https://raw.github.com/rcrowley/home/master/.profile]: ... > It works partially, i.e. it spawns a new agent on every shell > invocation. It should probably test for functiona

Re: [dev] ssh-agent stanza in POSIX shell

2011-10-30 Thread Sime Ramov
A bit of an update. I went to find out the *simplest* possible way of using ssh-agent. echo 'eval `ssh-agent`' >> .xinitrc Done. I just manually invoke ssh-add at first leisure. No need for any fancy shell trickery.

Re: [dev] ssh-agent stanza in POSIX shell

2011-10-30 Thread Eckehard Berns
> I've found the following clever ssh-agent stanza in Richard Crowley's > `.profile`[https://raw.github.com/rcrowley/home/master/.profile]: > > which ssh-agent >/dev/null && { > : ${SSH_AUTH_SOCK:=$(echo /tmp/ssh-*/agent.* | cut -d" " -f1)} > [ -S "$SSH_AUTH_SOCK" ] && { >

Re: [dev] ssh-agent stanza in POSIX shell

2011-10-30 Thread Martin Kopta
Reminds me http://www.ioccc.org :-) On 10/30/2011 08:04 PM, Sime Ramov wrote: I've found the following clever ssh-agent stanza in Richard Crowley's `.profile`[https://raw.github.com/rcrowley/home/master/.profile]: which ssh-agent>/dev/null&& { : ${SSH_AUTH_SOCK:=$(echo /tmp/ssh-*/agen

[dev] ssh-agent stanza in POSIX shell

2011-10-30 Thread Sime Ramov
I've found the following clever ssh-agent stanza in Richard Crowley's `.profile`[https://raw.github.com/rcrowley/home/master/.profile]: which ssh-agent >/dev/null && { : ${SSH_AUTH_SOCK:=$(echo /tmp/ssh-*/agent.* | cut -d" " -f1)} [ -S "$SSH_AUTH_SOCK" ] && { export