diff --git a/cookbook/ssh_agent.md b/cookbook/ssh_agent.md index ccaf3927e6a..b2c2d84c4c3 100644 --- a/cookbook/ssh_agent.md +++ b/cookbook/ssh_agent.md @@ -52,6 +52,21 @@ do --env { } ``` +### [Keychain](https://www.funtoo.org/Funtoo:Keychain) + +```nushell +load-env ( + keychain --eval --quiet + | lines + | split column ";" + | get column1 + | first 2 + | split column "=" + | rename name value + | reduce -f {} {|it, acc| $acc | upsert $it.name $it.value } + ) +``` + ## Non-nushell workarounds However, the commonly recommended approach involves running an ssh-agent so it establishes an user-wide socket for processes to connect to.