Skip to content

Commit 699640d

Browse files
authored
fix ssh-agent workaround script by getting username in a crossplateform manner (#2050)
1 parent 5e9addc commit 699640d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/ssh_agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ You can work around this behavior by checking if a ssh-agent is already running
4040
```nu
4141
do --env {
4242
let ssh_agent_file = (
43-
$nu.temp-path | path join $"ssh-agent-($env.USER? | default $env.USERNAME).nuon"
43+
$nu.temp-path | path join $"ssh-agent-(whoami).nuon"
4444
)
4545
4646
if ($ssh_agent_file | path exists) {

0 commit comments

Comments
 (0)