From 4e4315f2c366566ceb945f9c9f533905090e98fe Mon Sep 17 00:00:00 2001 From: intellild Date: Wed, 10 Apr 2024 12:05:16 +0800 Subject: [PATCH 1/5] add solution for ssh keychain --- cookbook/ssh_agent.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbook/ssh_agent.md b/cookbook/ssh_agent.md index ccaf3927e6a..3727496510b 100644 --- a/cookbook/ssh_agent.md +++ b/cookbook/ssh_agent.md @@ -52,6 +52,11 @@ do --env { } ``` +### (keychain)[https://www.funtoo.org/Funtoo:Keychain] +```nushell +load-env (keychain --eval --quiet id_ed25519 | 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. From b8c00291dd80cad0bc0f60bb32f11102045317e5 Mon Sep 17 00:00:00 2001 From: intellild Date: Wed, 10 Apr 2024 12:09:50 +0800 Subject: [PATCH 2/5] Update ssh_agent.md --- cookbook/ssh_agent.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cookbook/ssh_agent.md b/cookbook/ssh_agent.md index 3727496510b..f62f84360af 100644 --- a/cookbook/ssh_agent.md +++ b/cookbook/ssh_agent.md @@ -52,9 +52,10 @@ do --env { } ``` -### (keychain)[https://www.funtoo.org/Funtoo:Keychain] +### [KeyChain](https://www.funtoo.org/Funtoo:Keychain) + ```nushell -load-env (keychain --eval --quiet id_ed25519 | lines | split column ";" | get column1 | first 2 | split column "=" | rename name value | reduce -f {} {|it, acc| $acc | upsert $it.name $it.value }) +load-env (keychain --eval | 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 From 782f1d767200266643ff8ec3dde8c88a14960608 Mon Sep 17 00:00:00 2001 From: intellild Date: Wed, 10 Apr 2024 12:18:16 +0800 Subject: [PATCH 3/5] Update ssh_agent.md --- cookbook/ssh_agent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/ssh_agent.md b/cookbook/ssh_agent.md index f62f84360af..4f5cab089ed 100644 --- a/cookbook/ssh_agent.md +++ b/cookbook/ssh_agent.md @@ -55,7 +55,7 @@ do --env { ### [KeyChain](https://www.funtoo.org/Funtoo:Keychain) ```nushell -load-env (keychain --eval | lines | split column ";" | get column1 | first 2 | split column "=" | rename name value | reduce -f {} {|it, acc| $acc | upsert $it.name $it.value }) +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 From 317c8072ebb2d687e8f6ddb3ad384908430079e0 Mon Sep 17 00:00:00 2001 From: intellild Date: Wed, 10 Apr 2024 12:25:29 +0800 Subject: [PATCH 4/5] Update ssh_agent.md --- cookbook/ssh_agent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/ssh_agent.md b/cookbook/ssh_agent.md index 4f5cab089ed..38fe030c028 100644 --- a/cookbook/ssh_agent.md +++ b/cookbook/ssh_agent.md @@ -52,7 +52,7 @@ do --env { } ``` -### [KeyChain](https://www.funtoo.org/Funtoo:Keychain) +### [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 }) From 6285becc1c765140b2a634a648f1ba24a7b675ef Mon Sep 17 00:00:00 2001 From: intellild Date: Sat, 13 Apr 2024 19:12:02 +0800 Subject: [PATCH 5/5] Update ssh_agent.md --- cookbook/ssh_agent.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cookbook/ssh_agent.md b/cookbook/ssh_agent.md index 38fe030c028..b2c2d84c4c3 100644 --- a/cookbook/ssh_agent.md +++ b/cookbook/ssh_agent.md @@ -55,7 +55,16 @@ 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 }) +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