-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·37 lines (25 loc) · 964 Bytes
/
install.sh
File metadata and controls
executable file
·37 lines (25 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env zsh
# ------------------------------------------------------------------------------
# Main Installation
# ------------------------------------------------------------------------------
# Setup Code Directory
# ------------------------------------------------------------------------------
# Create "~/Code" directory that will house all code repositories, then
# download this dotfiles repository and run the "bootstrap.sh" file.
CODE_DIRECTORY="$HOME/Code"
# If "Code" does not exist or is not a directory, create it.
if [ ! -d $CODE_DIRECTORY ]
then
mkdir -p $CODE_DIRECTORY
fi
cd $CODE_DIRECTORY
# If "dotfiles" does not exist or is not a directory, create it.
if [ ! -d $CODE_DIRECTORY/dotfiles ]
then
git clone git@github.com:weerd/dotfiles.git
fi
cd dotfiles
# Make all bash script files in the repository executable.
find ./ -type f -name "*.sh" -exec chmod 755 {} \;
# Begin the setup bootstrapping process.
zsh bootstrap.sh