summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-21 00:24:57 +0100
committerMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-21 14:03:00 +0100
commit99c93b21fbd966726a4f7d6369c9640665dd20bb (patch)
tree8c48f01b6df256e7809902a8a5b18535ec8937b9
parentead6a5bb3fbac065e78886c1ccc6133601a5e6b6 (diff)
fixup
-rw-r--r--mut/nushell/env.nu2
1 files changed, 1 insertions, 1 deletions
diff --git a/mut/nushell/env.nu b/mut/nushell/env.nu
index c077610..977d407 100644
--- a/mut/nushell/env.nu
+++ b/mut/nushell/env.nu
@@ -128,7 +128,7 @@ do --env {
if ($ssh_agent_file | path exists) {
let ssh_agent_env = open ($ssh_agent_file)
- if ($"/proc/($ssh_agent_env.SSH_AGENT_PID)" | path exists) {
+ if (ps | where pid == ($ssh_agent_env.SSH_AGENT_PID) | is-not-empty) {
load-env $ssh_agent_env
return
} else {