forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·35 lines (26 loc) · 798 Bytes
/
install.sh
File metadata and controls
executable file
·35 lines (26 loc) · 798 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
#!/usr/bin/env bash
# Check for Homebrew Installation
if ! which brew > /dev/null; then
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi;
# Update Homebrew
brew update
# Upgrade any already-installed formulae.
brew upgrade
# Install everything inside Brewfile
brew bundle
# Remove outdated versions from the cellar.
brew cleanup
# initial copy of dotfiles
echo 'Copying dotfiles'
./bootstrap.sh
ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum
# Switch to using brew-installed bash as default shell
if ! fgrep -q '/usr/local/bin/bash' /etc/shells; then
echo '/usr/local/bin/bash' | sudo tee -a /etc/shells;
chsh -s /usr/local/bin/bash;
fi;
# os x defaults
echo 'Setting macOS defaults'
sh .macos