-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·49 lines (44 loc) · 2.36 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
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE}")";
git pull origin master;
function doIt() {
unset ZSH
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
apt-get install python-pip python-dev
pip install psutil thefuck # install thefuck on Ubuntu
brew install thefuck # install thefuck on OS X
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
git clone [email protected]:junegunn/vim-easy-align.git ~/.vim/bundle/vim-easy-align # install pathogen plugins
git clone [email protected]:wavded/vim-stylus.git ~/.vim/bundle/vim-stylus
git clone [email protected]:Bling/vim-airline.git ~/.vim/bundle/vim-airline
git clone [email protected]:pangloss/vim-javascript.git ~/.vim/bundle/vim-javascript
git clone [email protected]:mxw/vim-jsx.git ~/.vim/bundle/vim-jsx
git clone [email protected]:mustache/mustache.git ~/.vim/bundle/mustache
git clone [email protected]:scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
git clone [email protected]:tpope/Vim-fugitive.git ~/.vim/bundle/Vim-fugitive
git clone [email protected]:Yggdroot/indentLine.git ~/.vim/bundle/indentLine
git clone [email protected]:jparise/vim-graphql.git ~/.vim/bundle/vim-graphql
git clone [email protected]:airblade/vim-gitgutter.git ~/.vim/bundle/vim-gitgutter
git clone --depth=1 [email protected]:vim-syntastic/syntastic.git ~/.vim/bundle/vim-syntastic
git clone [email protected]:fteem/git-semantic-commits.git ~/.git-semantic-commits
git clone [email protected]:el-iot/vim-wikipedia-browser.git ~/.vim/bundle/vim-wikipedia-browser
git clone [email protected]:el-iot/buffer-tree-explorer.git ~/.vim/bundle/buffer-tree-explorer
sh ~/.git-semantic-commits/install.sh
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
./update_pathogen.sh # install / update pathogen again to update plugins
chsh -s $(which zsh) $(whoami) # change shell to zsh
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "setup.sh" \
--exclude "README.md" --exclude "LICENSE.txt" \
--exclude "update_pathogen.sh" --exclude "Makefile" -avh --no-perms . ~;
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt;
else
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
doIt;
fi;
fi;
unset doIt;
echo "If you are on OS X run 'sh .osx' to manipulate OS X setting as well"