diff options
Diffstat (limited to 'ssh-agent.1')
-rw-r--r-- | ssh-agent.1 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ssh-agent.1 b/ssh-agent.1 index 8b9504fa5..3fef3a479 100644 --- a/ssh-agent.1 +++ b/ssh-agent.1 | |||
@@ -109,6 +109,14 @@ environment variable holds the agent's PID. | |||
109 | .Pp | 109 | .Pp |
110 | The agent exits automatically when the command given on the command | 110 | The agent exits automatically when the command given on the command |
111 | line terminates. | 111 | line terminates. |
112 | .Pp | ||
113 | Here's a trick that will allow you to start this up from your .bash_profile (just put it in as the first thing that happens): | ||
114 | .Sp | ||
115 | .Vb 1 | ||
116 | |||
117 | \& [ ! "$SSH_AGENT_PID" ] && exec ssh-agent -- bash --login | ||
118 | \& ssh-add | ||
119 | .Ve | ||
112 | .Sh FILES | 120 | .Sh FILES |
113 | .Bl -tag -width Ds | 121 | .Bl -tag -width Ds |
114 | .It Pa $HOME/.ssh/identity | 122 | .It Pa $HOME/.ssh/identity |