]> git.sev.monster Git - dotfiles.git/commitdiff
zprofile: quietly check for running ssh agent
authorsev <git@sev.monster>
Thu, 16 Nov 2023 15:37:59 +0000 (09:37 -0600)
committersev <git@sev.monster>
Fri, 5 Apr 2024 21:27:41 +0000 (16:27 -0500)
etc/zsh/.zprofile

index a55b7e6e9ce6f2ef3d4782042255f602f679bfe1..399456b0522f20d772a7085bd4a79fcc90db448d 100644 (file)
@@ -179,7 +179,7 @@ if [[ ! -v _sev_setup_ssh ]] {
         if [[ -f $e ]] {
             IFS=$'\0' read -r sock pid <$e
         }
-        if [[ -S $sock && $pid > 0 ]] && kill -0 $pid; then
+        if [[ -S $sock && $pid > 0 ]] && kill -0 $pid >/dev/null 2>&1; then
             [[ -o interactive ]] && print -P "Reusing agent PID $pid%f"
             export SSH_AUTH_SOCK=$sock
             export SSH_AGENT_PID=$pid
This page took 0.039948 seconds and 4 git commands to generate.