-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·43 lines (36 loc) · 1.21 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
#/bin/sh
# Tmux's configuration file
ln -sf $PWD/tmux.conf ~/.tmux.conf
# install terminfo that support italic font
# and they are used by iTerm and Tmux etc
(
cd terminfo
for info in *; do
tic $info
echo compile terminfo $info
done
)
# install fonts
# iTerm2 and Vim use the fonts
./fonts/install.sh
# install oh-my-zsh[https://github.com/robbyrussell/oh-my-zsh]
[ -d ~/.oh-my-zsh/.git ] || sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
ln -sf $PWD/zshrc ~/.zshrc
echo "make link for zshrc"
(
echo "Install zsh prompt pure"
cd ~/.oh-my-zsh/custom
curl https://raw.githubusercontent.com/sindresorhus/pure/master/pure.zsh > pure.zsh-theme
curl https://raw.githubusercontent.com/sindresorhus/pure/master/async.zsh > async.zsh
)
# download Minimalist Vim Plugin Manager
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo install/update minimalist Vim plugin manager
# Neovim/Vim's config file and plugins
ln -sf $PWD/vimrc ~/.vimrc
ln -sf $PWD/vimrc ~/.nvimrc
ln -sf $PWD/vimrc.plug ~/.vimrc.plug
echo "make links for Vim/Neovim's configuration"
echo "start vim to install plugins"
vim +PlugInstall +qall