From e7304cbcac526af58aceac590ab1448a1d7a8208 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 27 Nov 2022 14:58:42 +0000 Subject: [PATCH] fish: Alias gpg to gpg2 --- fish/config.fish | 3 +++ fish/functions/gpg.fish | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 fish/functions/gpg.fish diff --git a/fish/config.fish b/fish/config.fish index 4ef8e7b..223e4b6 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -39,6 +39,9 @@ set -x SUDO_PROMPT (printf "\033[0;31m[\033[1;31msudo -> %%U\033[0;31m]\033[0m P set -x GNUPGHOME "$XDG_DATA_HOME/gnupg" set -x CVS_RSH ssh +if type -q gpg2 + alias gpg=gpg2 +end if type -q gpg # Make sure the GPG agent is running gpg --card-status &>/dev/null diff --git a/fish/functions/gpg.fish b/fish/functions/gpg.fish deleted file mode 100644 index f84c177..0000000 --- a/fish/functions/gpg.fish +++ /dev/null @@ -1,3 +0,0 @@ -function gpg --wraps=gpg2 - command gpg2 $argv -end