Added GPG

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2021-10-15 11:06:16 +01:00
parent c72372296c
commit 581c598ed3
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
2 changed files with 8 additions and 0 deletions

1
.gnupg/gpg-agent.conf Normal file
View File

@ -0,0 +1 @@
pinentry-program /usr/local/bin/pinentry-mac

View File

@ -38,6 +38,7 @@ pre-reqs: ## Install all required binaries.
which dog > /dev/null || brew install dog; \ which dog > /dev/null || brew install dog; \
which delta > /dev/null || brew install git-delta; \ which delta > /dev/null || brew install git-delta; \
which switcher > /dev/null || brew install danielfoehrkn/switch/switch; \ which switcher > /dev/null || brew install danielfoehrkn/switch/switch; \
which pinentry-mac > dev/null || brew install pinentry-mac; \
brew install gpg gawk coreutils; \ 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-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; \ 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 dog > /dev/null && brew upgrade dog; \
which delta > /dev/null && brew upgrade git-delta; \ which delta > /dev/null && brew upgrade git-delta; \
which switcher > /dev/null && brew upgrade switch; \ 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-autosuggestions && git pull && cd -; \
cd $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && git pull && cd -; \ cd $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && git pull && cd -; \
cd ~/.oh-my-zsh && git pull && cd -; \ cd ~/.oh-my-zsh && git pull && cd -; \
@ -105,6 +107,11 @@ dotfiles: ## Installs the dotfiles.
f=$$(basename $$file); \ f=$$(basename $$file); \
ln -sfn $$file $(HOME)/.kube/$$f; \ ln -sfn $$file $(HOME)/.kube/$$f; \
done; \ 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 .PHONY: help