1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
98deefe039
zsh: fix ssh-agent
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-03-04 15:47:43 +03:00
6d29f9afbc
dotfiles: fix accounting
fixes 20aafe29
2024-03-04 15:42:02 +03:00
2 changed files with 4 additions and 1 deletions

View File

@ -65,6 +65,7 @@
!/.config/zsh/local.zsh.example
!/.config/zsh/local/.keep
!/.config/zsh/local/completion/.keep
!/.config/zsh/local/env.zsh.example
!/.config/zsh/opt.zsh
!/.config/zsh/opt/chase.zsh
!/.config/zsh/opt/completion.zsh

View File

@ -9,6 +9,8 @@ z-ssh-agent() {
break
done
[ -z "${SSH_AGENT_PID}" ] || kill "${SSH_AGENT_PID}"
unset SSH_AGENT_PID
(( ${+commands[ssh-agent]} )) || return 127
@ -24,6 +26,6 @@ z-ssh-agent() {
fi
{
eval "$(ssh-agent -s -k -a "${SSH_AUTH_SOCK}")"
eval "$(ssh-agent -s -a "${SSH_AUTH_SOCK}")"
} >/dev/null
}