diff options
-rw-r--r-- | home/.gnupg/gpg-agent.conf | 17 | ||||
-rwxr-xr-x | new-user-setup.sh | 17 |
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) | ||
10 | default-cache-ttl 1800 | ||
11 | |||
12 | |||
13 | ######################################################################## | ||
14 | ## Emacs Pinentry | ||
15 | ######################################################################## | ||
16 | allow-emacs-pinentry | ||
17 | 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 () { | |||
74 | fi | 74 | fi |
75 | } | 75 | } |
76 | 76 | ||
77 | # Place files | 77 | # Directory placement function |
78 | place_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 | ||
78 | place_file $HOME/dotfiles.core/home/.bash_profile $HOME/.bash_profile | 89 | place_file $HOME/dotfiles.core/home/.bash_profile $HOME/.bash_profile |
79 | place_file $HOME/dotfiles.core/home/.bashrc $HOME/.bashrc | 90 | place_file $HOME/dotfiles.core/home/.bashrc $HOME/.bashrc |
80 | place_file $HOME/dotfiles.core/home/.bash_aliases $HOME/.bash_aliases | 91 | place_file $HOME/dotfiles.core/home/.bash_aliases $HOME/.bash_aliases |
81 | 92 | ||
93 | # GPG Configuration | ||
94 | place_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 |