-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·33 lines (27 loc) · 967 Bytes
/
setup.sh
File metadata and controls
executable file
·33 lines (27 loc) · 967 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
#!/usr/bin/env bash
# Based on `~/.osx` — https://mths.be/osx
clear
sudo -v
# base path for scripts
DOTFILE_BASE="/Users/rvarick/Library/Mobile Documents/com~apple~CloudDocs/dotfiles" # iCloud
export DOTFILE_BASE=${DOTFILE_BASE}
echo '> Write .dotfile_base? (y/n)'
read response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
echo "export DOTFILE_BASE=\"${DOTFILE_BASE}\"" > ~/.dotfile_base
fi
sh "${DOTFILE_BASE}/scripts/apps.sh"
sh "${DOTFILE_BASE}/scripts/bash.sh"
sh "${DOTFILE_BASE}/scripts/color_palettes.sh"
sh "${DOTFILE_BASE}/scripts/date_time.sh"
sh "${DOTFILE_BASE}/scripts/dock.sh"
sh "${DOTFILE_BASE}/scripts/energy.sh"
sh "${DOTFILE_BASE}/scripts/hostname.sh"
sh "${DOTFILE_BASE}/scripts/macos.sh"
sh "${DOTFILE_BASE}/scripts/node.sh"
sh "${DOTFILE_BASE}/scripts/symlinks.sh"
echo '> Log out now? (y/n)'
read response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
osascript -e 'tell application "loginwindow" to «event aevtrlgo»'
fi