From 5438197b6dc9ff171c9d7b2e6de3b21e7567cc45 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 14 Mar 2021 11:07:01 +0000 Subject: zsh/op-ssh-add: Pass one private key to ssh-add --- zsh/functions/op-ssh-add | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zsh/functions') diff --git a/zsh/functions/op-ssh-add b/zsh/functions/op-ssh-add index ad55d6c..646b7f7 100644 --- a/zsh/functions/op-ssh-add +++ b/zsh/functions/op-ssh-add @@ -35,7 +35,7 @@ if [[ -z ${session} ]]; then return 1 fi zmodload zsh/zpty -zpty ssh $(which -p ssh-add) $@ +zpty ssh $(which -p ssh-add) ${prv} zpty -w ssh $(op list items --session ${session} --tags SSH \ | op get item \ --fields fingerprint,password \ -- cgit v1.2.3-70-g09d2