-
Notifications
You must be signed in to change notification settings - Fork 2
/
install_dotfiles.sh
36 lines (28 loc) · 1016 Bytes
/
install_dotfiles.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
cd ~
mkdir -p ~/.tmux/plugins/tpm
# cleanup
rm -rf ~/.vim/zgen ~/.vim/bundle ~/.tmux/plugins/tpm
# install zgen
git clone https://github.com/tarjoilija/zgen.git ~/.vim/zgen
# link rc files
ln -sf ~/.vim/vimrc.local ~/.vimrc
ln -sf ~/.vim/zshrc.local ~/.zshrc
ln -sf ~/.vim/tmux.conf.local ~/.tmux.conf
ln -sf ~/.vim/ackrc.local ~/.ackrc
ln -sf ~/.vim/gitconfig.local ~/.gitconfig
# make vi mode work in terminal
cp ~/.vim/inputrc.local ~/.inputrc
# make vi mode work in irb/pry/rails_console
cp ~/.vim/editrc.local ~/.editrc
# install vim-plug
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# environment variables
ln -sf ~/.vim/envs.local ~/.envs
# nvim configuration
ln -sf ~/.vim/nvim_init.vim ~/.config/nvim/init.vim
# coc configuration
ln -sf ~/.vim/coc-settings.local ~/.config/nvim/coc-settings.json
# alacritty configuration
mkdir -p ~/.config/alacritty
ln -sf ~/.vim/alacritty.yml ~/.config/alacritty/alacritty.yml