forked from ruyadorno/installme-osx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
134 lines (108 loc) · 3.43 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!/bin/sh
# setup folder structure
mkdir ~/Documents/workspace
mkdir ~/Documents/repos
# brew setup
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew upgrade
# Core utils
brew install coreutils
brew install findutils
# Dependencies
brew install jpeg-turbo
brew install optipng
brew install readline
# Apps
brew install the_silver_searcher
brew install ant
brew install git
brew install mercurial
brew install node
brew install irssi
brew install phantomjs
brew install unrar
brew install trash
brew install tree
brew install wget
# MacVim for terminal
brew install macvim
alias vim='mvim -v'
# OSX native apps
brew tap phinze/homebrew-cask
brew install brew-cask
function installcask() {
brew cask install "${@}" 2> /dev/null
}
# dev-related programs
installcask atom
installcask dropbox
installcask copy
installcask google-chrome
installcask firefox
installcask iterm2
installcask sourcetree
# utils
installcask skype
installcask lastfm
installcask vlc
installcask onepassword
installcask camtasia
installcask cleanmymac
installcask macpaw-gemini
installcask flickr-uploadr
# games
installcask steam
installcask minecraft
installcask openttd
# npm dependencies that I'm not likely to live without
npm install -g jshint
npm install -g jsxhint
npm install -g grunt-cli
npm install -g gulp
npm install -g yo
npm install -g http-server
# vim setup
mkdir -p ~/.vim/autoload ~/.vim/bundle; \
curl -Sso ~/.vim/autoload/pathogen.vim \
https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
# Go to bundle folder
cd ~/.vim/bundle/
# Get all plugins
git clone https://github.com/vim-scripts/bufkill.vim
git clone https://github.com/wincent/Command-T.git
echo "Command-T will need extra setup, please review its docs"
open https://github.com/wincent/Command-T/blob/master/doc/command-t.txt#L174
git clone https://github.com/rking/ag.vim
git clone https://github.com/editorconfig/editorconfig-vim.git
git clone https://github.com/sjl/gundo.vim.git
git clone https://github.com/scrooloose/nerdtree.git
git clone https://github.com/mitechie/pyflakes-pathogen.git
git clone https://github.com/scrooloose/syntastic.git
echo "Syntastic will rely on code validation tools, such as jshint"
git clone https://github.com/altercation/vim-colors-solarized.git
git clone https://github.com/Lokaltog/vim-easymotion.git
git clone https://github.com/nvie/vim-flake8.git
git clone https://github.com/mhinz/vim-signify.git
git clone https://github.com/millermedeiros/vim-statline.git
git clone https://github.com/AndrewRadev/splitjoin.vim.git
git clone https://github.com/godlygeek/tabular.git
git clone https://github.com/elzr/vim-json.git
git clone https://github.com/ruyadorno/vim-change-indent.git
git clone https://github.com/groenewege/vim-less.git
git clone https://github.com/skammer/vim-css-color.git
git clone https://github.com/hail2u/vim-css3-syntax
git clone https://github.com/othree/html5.vim.git
# Configure Command-T
cd ~/.vim/bundle/command-t/ruby/command-t
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
make
## Get dotfiles repo and setup symlinks
cd ~/Documents/repos/
git clone https://github.com/ruyadorno/dotfiles.git
cd ~/
ln -s Documents/repos/dotfiles/bashrc .bash_profile
ln -s Documents/repos/dotfiles/gitconfig .gitconfig
ln -s Documents/repos/dotfiles/gitignore_global .gitignore_global
ln -s Documents/repos/dotfiles/hgrc .hgrc
ln -s Documents/repos/dotfiles/vimrc .vimrc