-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathquickstart.sh
executable file
·63 lines (47 loc) · 1.44 KB
/
quickstart.sh
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# set -e
# shellcheck source=./functions
source ./functions
if running_macos; then
# Prevent sleeping during script execution, as long as the machine is on AC power
caffeinate -s -w $$ &
fi
echo "Making Files ..."
make -f Makefile
if ! brew_available; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
load_brew_shellenv
fi
if brew_available; then
echo "Brewing..."
source ./macsetup
fi
if running_macos; then
load_brew_shellenv
fi
if running_macos; then
echo "deleting all .DS_Store files"
find . -name ".DS_Store" -type f -delete
fi
echo "linking your files ..."
source ./linkfolders
echo "installing files and folders ..."
source ./install
echo "Importing defaults ..."
chmod +x import-defaults.sh
sh defaults-import.sh ~/defaults/defaults.zip
echo "checking if ~/.tmux/plugins/tpm directory exists ..."
DIR=~/.tmux/plugins/tpm
if [ -d "$DIR" ];
then
echo "$DIR directory exists, aborting tmux plugins installation."
else
echo "$DIR directory does not exist, installing tmux plugins ..."
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
~/.tmux/plugins/tpm/bin/install_plugins
fi
echo "installing rust"
curl https://sh.rustup.rs -sSf | sh
echo "Kill affected applications"
for app in Safari Finder Dock Mail SystemUIServer; do killall "$app" >/dev/null 2>&1; done
echo "Done. Note that some of these changes require a logout/restart to take effect."