aboutsummaryrefslogtreecommitdiff
path: root/new-user-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'new-user-setup.sh')
-rwxr-xr-xnew-user-setup.sh17
1 files changed, 16 insertions, 1 deletions
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