From 581c598ed362271d41b442931a60abd16739b387 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 15 Oct 2021 11:06:16 +0100 Subject: [PATCH] Added GPG Signed-off-by: Marcus Noble --- .gnupg/gpg-agent.conf | 1 + Makefile | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 .gnupg/gpg-agent.conf diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf new file mode 100644 index 0000000..d9704a5 --- /dev/null +++ b/.gnupg/gpg-agent.conf @@ -0,0 +1 @@ +pinentry-program /usr/local/bin/pinentry-mac diff --git a/Makefile b/Makefile index 4eb6a02..830c6fb 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,7 @@ pre-reqs: ## Install all required binaries. which dog > /dev/null || brew install dog; \ which delta > /dev/null || brew install git-delta; \ which switcher > /dev/null || brew install danielfoehrkn/switch/switch; \ + which pinentry-mac > dev/null || brew install pinentry-mac; \ brew install gpg gawk coreutils; \ git clone https://github.com/zsh-users/zsh-autosuggestions $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions; \ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting; \ @@ -76,6 +77,7 @@ upgrade: ## Upgrade all required binaries. which dog > /dev/null && brew upgrade dog; \ which delta > /dev/null && brew upgrade git-delta; \ which switcher > /dev/null && brew upgrade switch; \ + which pinentry-mac > dev/null && brew upgrade pinentry-mac; \ cd $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && git pull && cd -; \ cd $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && git pull && cd -; \ cd ~/.oh-my-zsh && git pull && cd -; \ @@ -105,6 +107,11 @@ dotfiles: ## Installs the dotfiles. f=$$(basename $$file); \ ln -sfn $$file $(HOME)/.kube/$$f; \ done; \ + mkdir -p $(HOME)/.gnupg; \ + for file in $(shell find $(CURDIR)/.gnupg -type f); do \ + f=$$(basename $$file); \ + ln -sfn $$file $(HOME)/.gnupg/$$f; \ + done; \ .PHONY: help