-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·70 lines (51 loc) · 1.61 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
#!/bin/sh
cd "$(dirname "${BASH_SOURCE}")";
mkdir -p ./.config/
echo "Links .vimrc."
if [ -e ~/.vimrc ]
then
echo "Found an existing .vimrc. Moved it to .vimrc.pre_script"
mv ~/.vimrc ~/.vimrc.pre_script
fi
if [ -d ~/.config ]
then
echo "Found an existing directory for config file."
echo "Moved it from ~/.config to ~/config.pre_script"
mv ~/.config ~/config.pre_script
fi
cp -r config/ ~/.config
echo "source $HOME/.config/vim/vimrc" > ~/.vimrc
echo "source $HOME/.config/vim/plugins.vim" >> ~/.vimrc
echo "source $HOME/.config/vim/shortcuts.vim" >> ~/.vimrc
ln -s ~/.vim $HOME/.config/nvim
echo "Install oh-my-zsh."
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.config/oh-my-zsh
echo "Links .zshrc."
if [ -e ~/.zshrc ]
then
echo "Found an existing .zshrc. Moved it to .zshrc.pre_script"
mv ~/.zshrc ~/.zshrc.pre_script
fi
echo "source $HOME/.config/zsh/zshrc" > ~/.zshrc
echo "Install git config."
cp -i git/gitconfig ~/.gitconfig
cp -i git/gitignore ~/.gitignore
echo "Install Homebrew."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Install software using Homebrew."
./brew.sh
echo "Install pip"
curl https://bootstrap.pypa.io/get-pip.py /tmp/get-pip.py
python /tmp/get-pip.py
python3 /tmp/get-pip.py
echo "Install pip packages"
pip3 install neovim
pip install virtualenv
echo "Install vim plugins."
mkdir -p ~/.vim/bundle
git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
vim +NeoBundleInstall +qall
echo "Install npm packages."
yarn global add ios-deploy
echo "Change default shell to zsh."
chsh -s /bin/zsh