-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
executable file
·39 lines (27 loc) · 912 Bytes
/
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
#!/bin/zsh
set -e
NS=~/.nostromo
if [ ! -d ~/.zprezto ]
then
git clone --recursive https://github.com/htuch/prezto.git -b htuch-nostromo ~/.zprezto
git clone https://github.com/htuch/zsh-autosuggestions -b htuch-nostromo ~/.zsh/zsh-autosuggestions
git clone https://github.com/htuch/Vundle.vim.git ${NS}/.vim/bundle/Vundle.vim
git clone https://github.com/htuch/zsh-bd.git ~/.zsh/zsh-bd
git clone https://github.com/htuch/powerline.git -b htuch-nostromo ~/.powerline
pip install --user --editable ~/.powerline
fi
DOTLINKS=".dir_colors .gitignore .inputrc .tmux.conf .vim .vimrc
.zlogin .zlogout .zpreztorc .zprofile .zshenv .zshrc"
for d in ${=DOTLINKS}
do
ln -snf ${NS}/${d} ~/
done
cp -f ${NS}/.gitconfig.local ~/.gitconfig
TOUCHFILES=".zshrc.local .zprofile.local"
for f in ${=TOUCHFILES}
do
touch ~/${f}
done
~/.nostromo/setup-fzf.sh
vim +PluginInstall +qall
chsh -s /bin/zsh