-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·50 lines (37 loc) · 1.25 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
44
45
46
47
48
49
50
#!/bin/bash
RUBY_VERSION="2.5.0"
NODE_VERSION="8.9.4"
DOTFILES_DIR="$HOME/dev/berfarah/dotfiles"
echo "Installing dev tools"
xcode-select --install
echo "Gathering dependencies"
mkdir -p $DOTFILES_DIR
curl -sL https://github.com/berfarah/dotfiles/archive/master.tar.gz | tar -xz -C $DOTFILES_DIR --strip-components=1
cd $DOTFILES_DIR
echo "Installing Oh-My-Zsh"
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
echo "Installing Homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Installing homebrew dependencies"
brew bundle
echo "Installing FZF shell extensions"
/usr/local/opt/fzf/install
echo "Symlinking dotfiles"
./bin/link.sh
echo "Setting up Ruby"
eval "$(rbenv init -)" 2> /dev/null
git clone git://github.com/tpope/rbenv-ctags.git ~/.rbenv/plugins/rbenv-ctags
rbenv install $RUBY_VERSION
rbenv global $RUBY_VERSION
gem install --conservative gem-ctags bundler rubocop
echo "Setting up Node"
eval "$(nodenv init -)" 2> /dev/null
nodenv install $NODE_VERSION
nodenv global $NODE_VERSION
yarn global add eslint typescript
echo "Copying over old preferences"
chmod 0600 ./plists/*
cp -R ./plists/ ~/Library/Preferences/
# Set a bunch of settings
./bin/macos.sh
echo "Done!"