From 198d2b5217a7c863709ca9ca377a85d3aa241de0 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 22 Oct 2024 00:26:52 +0300 Subject: [PATCH] Gpg: Add gpg_refresh. --- home/program/bash/module/Gpg.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/program/bash/module/Gpg.nix b/home/program/bash/module/Gpg.nix index ed899c5..36366ed 100644 --- a/home/program/bash/module/Gpg.nix +++ b/home/program/bash/module/Gpg.nix @@ -87,5 +87,10 @@ gpg --locate-keys "''${email}" \ || gpg --locate-keys --auto-key-locate hkps://keys.openpgp.org "''${email}" } + + # Update keys. + function gpg_refresh() { + gpg --refresh-keys + } ''; }