aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Williams <tgwil@tgwil.net>2024-10-13 11:29:51 -0400
committerTristan Williams <tgwil@tgwil.net>2024-10-13 11:29:51 -0400
commit2a0a997b3bf0b501cd58b5a9f2fba4f5494d964a (patch)
treed68d0161ccf5cbfe248093e84e4c7b3ab8b446d3
parentMove PATH stuff to .bash_profile (diff)
downloaddotfiles.core-2a0a997b3bf0b501cd58b5a9f2fba4f5494d964a.tar.gz
dotfiles.core-2a0a997b3bf0b501cd58b5a9f2fba4f5494d964a.tar.bz2
dotfiles.core-2a0a997b3bf0b501cd58b5a9f2fba4f5494d964a.zip
Add GPG configuration
-rw-r--r--home/.gnupg/gpg-agent.conf17
-rwxr-xr-xnew-user-setup.sh17
2 files changed, 33 insertions, 1 deletions
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 @@
1# FILE : dotfiles.core/home/.gnupg/gpg-agent.conf
2# TARGET: ~/.gnupg/gpg-agent.conf
3# AUTHOR: tgwil
4
5
6########################################################################
7## Cache
8########################################################################
9# Time a cached entry is valid (in seconds)
10default-cache-ttl 1800
11
12
13########################################################################
14## Emacs Pinentry
15########################################################################
16allow-emacs-pinentry
17allow-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 () {
74 fi 74 fi
75} 75}
76 76
77# Place files 77# Directory placement function
78place_directory () {
79 directory=$1
80 if [[ -d $directory ]]; then
81 echo -e "${YELLOW}${directory} already exists.${ENDCOLOR}"
82 else
83 mkdir -p $directory & \
84 echo -e "${GREEN}Created: ${directory}${ENDCOLOR}"
85 fi
86}
87
88# Bash Configuration
78place_file $HOME/dotfiles.core/home/.bash_profile $HOME/.bash_profile 89place_file $HOME/dotfiles.core/home/.bash_profile $HOME/.bash_profile
79place_file $HOME/dotfiles.core/home/.bashrc $HOME/.bashrc 90place_file $HOME/dotfiles.core/home/.bashrc $HOME/.bashrc
80place_file $HOME/dotfiles.core/home/.bash_aliases $HOME/.bash_aliases 91place_file $HOME/dotfiles.core/home/.bash_aliases $HOME/.bash_aliases
81 92
93# GPG Configuration
94place_directory $HOME/.gnupg & \
95 place_file $HOME/dotfiles.core/home/.gnupg/gpg-agent.conf $HOME/.gnupg/gpg-agent.conf
96
82 97
83######################################################################## 98########################################################################
84## END OF SCRIPT 99## END OF SCRIPT