forked from mom0tomo/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
33 lines (26 loc) · 737 Bytes
/
install.sh
File metadata and controls
33 lines (26 loc) · 737 Bytes
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
#!/bin/sh
cd $(dirname ${0})
vim_home=~/.vim
nvim_home=~/.config/nvim
fish_home=/.config/fish
# for git
ln -sf $PWD/git/.gitconfig ~/.gitconfig
ln -sf $PWD/git/.gitignore ~/.gitignore
ln -sf $PWD/git/.gitignore_global ~/.gitignore_global
# for fish
ln -sf $PWD/fish/ ${fish_home}
# for vim
ln -sf $PWD/vim/.vimrc ~/.vimrc
ln -sf $PWD/vim/.gvimrc ~/.gvimrc
ln -sf $PWD/vim/.vim/ ${vim_home}
# for neovim
mkdir -p ${nvim_home}
ln -sf $PWD/nvim/init.vim ${nvim_home}
ln -sf $PWD/nvim/colors ${nvim_home}
# for dein.vim
mkdir -p ~/.cache/dein
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
sh ./installer.sh ~/.cache/dein
rm ./installer.sh
# for psql
ln -sf $PWD/psql/.psqlrc ~/.psqlrc