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 --- new-user-setup.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'new-user-setup.sh') 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