]> git.sev.monster Git - dotfiles.git/blobdiff - etc/zsh/.zprofile
zprofile: quietly check for running ssh agent
[dotfiles.git] / 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.031061 seconds and 4 git commands to generate.