forked from driesvints/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·98 lines (75 loc) · 2.47 KB
/
install.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/sh
echo "Setting up your Mac..."
# Check for Homebrew and install if we don't have it
if test ! $(which brew); then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
xcode-select --install
# Update Homebrew recipes
brew update
# Install all our dependencies with bundle (See Brewfile)
brew tap homebrew/bundle
brew tap caskroom/versions
brew bundle
# Make ZSH the default shell environment
chsh -s $(which zsh)
# Copy .zshrc file
cp ~/.dotfiles/.zshrc ~
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Add ZSH aliases and path
cp ~/.dotfiles/aliases.zsh ~/.oh-my-zsh/custom
cp ~/.dotfiles/path.zsh ~/.oh-my-zsh/custom
# Add shortcut to launch Sublime from Terminal
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
# Install global NPM packages
npm install --global npm@latest
npm update --global
npm install --global yarn
npm install --global grunt-cli
npm install --global jslint
npm install --global spaceship-prompt
# Copy .gemrc
cp ~/.dotfiles/.gemrc ~/.gemrc
# Accept GPG Key and install RVM
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable --rails
# Update Ruby gems
sudo gem update --no-ri --no-rdoc
# Install Python Packages
pip3 install autopep8
pip3 install azure
pip3 install black
pip3 install bottle
pip3 install flake8
pip3 install flake8-bugbear
pip3 install flask
pip3 install gunicorn
pip3 install pylint
pip3 install pyodbc
pip3 install pytest
# Copy .gemrc
cp ~/.dotfiles/.gemrc ~/.gemrc
# Set up Git
cp ~/.dotfiles/.gitconfig ~
cp ~/.dotfiles/.gitignore_global ~
cp ~/.dotfiles/.gitmessage ~
# Copy nanorc file
cp ~/.dotfiles/.nanorc ~/
# Install SF Mono
cp /Applications/Utilities/Terminal.app/Contents/Resources/Fonts/*.otf ~/Library/Fonts/
# Download and install TextExpander 4 (Legacy)
mkdir /tmp/TextExpander4
cd /tmp/TextExpander4
curl -sS http://cdn.smilesoftware.com/TextExpander_4.3.6.zip > TextExpander4.zip
unzip TextExpander4.zip
rm TextExpander4.zip
cp -r TextExpander.app /Applications
rm -r TextExpander.app
# Set up Sublime Sync
# cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
# rm -r User
# ln -s ~/Dropbox/Developer/Sublime/User
# Set macOS preferences
# We will run this last because this will reload the shell
source ~/.dotfiles/.macos