We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e267e75 commit 325cb6bCopy full SHA for 325cb6b
cookbook/ssh_agent.md
@@ -55,16 +55,14 @@ do --env {
55
### [Keychain](https://www.funtoo.org/Funtoo:Keychain)
56
57
```nushell
58
-load-env (
59
- keychain --eval --quiet <your ssh keys, eg. id_ed25519>
+keychain --eval --quiet <your ssh keys, eg. id_ed25519>
60
| lines
61
- | split column ";"
62
- | get column1
63
- | first 2
64
- | split column "="
65
- | rename name value
66
- | reduce -f {} {|it, acc| $acc | upsert $it.name $it.value }
67
- )
+ | where not ($it | is-empty)
+ | parse "{k}={v}; export {k2};"
+ | select k v
+ | transpose --header-row
+ | into record
+ | load-env
68
```
69
70
## Non-nushell workarounds
0 commit comments