Fix keychain init on linux
This commit is contained in:
parent
c5a18686c6
commit
44b3860abc
1 changed files with 2 additions and 5 deletions
|
|
@ -34,11 +34,8 @@ in
|
|||
|
||||
programs = {
|
||||
zsh.initContent = ''
|
||||
# Just ensure SSH agent is available, don't preload keys
|
||||
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
|
||||
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock 2>/dev/null
|
||||
fi
|
||||
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
|
||||
# Initialize keychain - will handle keys on-demand
|
||||
eval $(keychain --eval --agents ssh)
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue