From 2a0a997b3bf0b501cd58b5a9f2fba4f5494d964a Mon Sep 17 00:00:00 2001 From: Tristan Williams Date: Sun, 13 Oct 2024 11:29:51 -0400 Subject: Add GPG configuration --- home/.gnupg/gpg-agent.conf | 17 +++++++++++++++++ new-user-setup.sh | 17 ++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 home/.gnupg/gpg-agent.conf diff --git a/home/.gnupg/gpg-agent.conf b/home/.gnupg/gpg-agent.conf new file mode 100644 index 0000000..2a60f5b --- /dev/null +++ b/home/.gnupg/gpg-agent.conf @@ -0,0 +1,17 @@ +# FILE : dotfiles.core/home/.gnupg/gpg-agent.conf +# TARGET: ~/.gnupg/gpg-agent.conf +# AUTHOR: tgwil + + +######################################################################## +## Cache +######################################################################## +# Time a cached entry is valid (in seconds) +default-cache-ttl 1800 + + +######################################################################## +## Emacs Pinentry +######################################################################## +allow-emacs-pinentry +allow-loopback-pinentry diff --git a/new-user-setup.sh b/new-user-setup.sh index d4fc2ff..2f4ded8 100755 --- a/new-user-setup.sh +++ b/new-user-setup.sh @@ -74,11 +74,26 @@ place_file () { fi } -# Place files +# Directory placement function +place_directory () { + directory=$1 + if [[ -d $directory ]]; then + echo -e "${YELLOW}${directory} already exists.${ENDCOLOR}" + else + mkdir -p $directory & \ + echo -e "${GREEN}Created: ${directory}${ENDCOLOR}" + fi +} + +# Bash Configuration place_file $HOME/dotfiles.core/home/.bash_profile $HOME/.bash_profile place_file $HOME/dotfiles.core/home/.bashrc $HOME/.bashrc place_file $HOME/dotfiles.core/home/.bash_aliases $HOME/.bash_aliases +# GPG Configuration +place_directory $HOME/.gnupg & \ + place_file $HOME/dotfiles.core/home/.gnupg/gpg-agent.conf $HOME/.gnupg/gpg-agent.conf + ######################################################################## ## END OF SCRIPT -- cgit v1.2.3