Is it possible to have zsh+keychain+tmux not ask for keys?

Posted by Wayne Werner on Super User See other posts from Super User or by Wayne Werner
Published on 2012-10-10T21:40:03Z Indexed on 2012/10/10 21:41 UTC
Read the original article Hit count: 242

Filed under:
|
|
|

I'm using tmux and zsh, and I've recently been learning about ssh-agent and keychain. From the manpage for zsh, it says that it will source .zlogin only if the shell is, well, a login shell.

Following advice I read, I stuck keychain --clear in my .zlogin, which worked perfectly. When I logged into the box I had to unlock my key. However, each time I create a new window in tmux, it clears/makes me re-add my key. This is a little annoying... but I can understand it if, in fact, each new tmux window is a login window.

I haven't been able to find much help outside of the manpages on this topic. So is each new tmux window a login shell, or is there any way that I can make it not clear my keys only when I create a tmux window?

© Super User or respective owner

Related posts about screen

Related posts about zsh