Extend docstring of ssh-add utility function

This commit is contained in:
Daniel - 2023-07-16 10:17:38 +02:00
parent c43291d23b
commit 45c3b61476
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 5 additions and 2 deletions

View File

@ -837,10 +837,13 @@ This is `db-light' and `solarized-light'."
;;; SSH-Key-Handling
(defun db/add-ssh-key-with-password (key-file password-fn)
"Add key in KEY-FILE to currently running ssh-agent.
"Synchronously add key in KEY-FILE to currently running ssh-agent.
PASSWORD-FN is supposed to be a function returning the password
for KEY-FILE."
for KEY-FILE; PASSWORD-FN is called on demand.
This function uses ssh-add to add the key to the currently
running ssh-agent and waits for the process to finish."
(with-environment-variables (("SSH_ASKPASS_REQUIRE" "never"))
(let* ((key-file (expand-file-name key-file))
(proc (make-process :name "ssh-add"