-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·43 lines (32 loc) · 1.09 KB
/
setup.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
#!/usr/bin/env bash
source $HOME/.dotfiles/scripts/utils/utils.sh
if ! is_os "darwin"; then
e_error "The setup script is only for OS X"
exit 1
fi
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Install Homebrew.
if ! type_exists 'brew'; then
e_info "Installing Homebrew"
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
brew update
# Install brew apps
brew tap homebrew/bundle
brew bundle --file=brewfiles/all
brew bundle --file=brewfiles/extras
# On work computer
# brew bundle --file=brewfiles/work
# On home computer
# brew bundle --file=brewfiles/personal
source $HOME/.dotfiles/scripts/homebrew.sh
source $HOME/.dotfiles/scripts/dotfiles.sh
source $HOME/.dotfiles/scripts/others.sh
source $HOME/.dotfiles/scripts/node.sh
#source $HOME/.dotfiles/scripts/osx.sh
source $HOME/.dotfiles/scripts/fish.sh
source $HOME/.dotfiles/scripts/phputils.sh
#scutil --set HostName iMac.local