Skip to content

Commit

Permalink
Fix Keychain instructions in ssh_agent.md (#1388)
Browse files Browse the repository at this point in the history
* Fix Keychain instructions in ssh_agent.md

* Simplify previous Keychain instructions
  • Loading branch information
justbispo committed May 11, 2024
1 parent e267e75 commit 325cb6b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions cookbook/ssh_agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,14 @@ do --env {
### [Keychain](https://www.funtoo.org/Funtoo:Keychain)

```nushell
load-env (
keychain --eval --quiet <your ssh keys, eg. id_ed25519>
keychain --eval --quiet <your ssh keys, eg. id_ed25519>
| lines
| split column ";"
| get column1
| first 2
| split column "="
| rename name value
| reduce -f {} {|it, acc| $acc | upsert $it.name $it.value }
)
| where not ($it | is-empty)
| parse "{k}={v}; export {k2};"
| select k v
| transpose --header-row
| into record
| load-env
```

## Non-nushell workarounds
Expand Down

0 comments on commit 325cb6b

Please sign in to comment.