-
Notifications
You must be signed in to change notification settings - Fork 0
/
dotfilesLink.sh
executable file
·44 lines (40 loc) · 1.27 KB
/
dotfilesLink.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
#!/bin/sh
# vim
mkdir -p ~/.vim
mkdir -p ~/.vim/backup
mkdir -p ~/.vim/swp
mkdir -p ~/.vim/undo
ln -sf ~/dotfiles/vimrc ~/.vimrc
ln -sf ~/dotfiles/gvimrc ~/.gvimrc
ln -sf ~/dotfiles/ideavimrc ~/.ideavimrc
ln -sf ~/dotfiles/vim/config ~/.vim/
ln -sf ~/dotfiles/vim/rc ~/.vim/
ln -sf ~/dotfiles/vim/snippets ~/.vim/
ln -sf ~/dotfiles/vim/after ~/.vim/
ln -sf ~/dotfiles/vim/memo ~/.vim/
ln -sf ~/dotfiles/vim/template ~/.vim/
# neovim
ln -sf ~/dotfiles/nvim ~/.config/
# others
ln -sf ~/dotfiles/tmux.conf ~/.tmux.conf
ln -sf ~/dotfiles/gitconfig ~/.gitconfig
ln -sf ~/dotfiles/gitignore_global ~/.gitignore_global
ln -sf ~/dotfiles/zshrc ~/.zshrc
ln -sf ~/dotfiles/zshenv ~/.zshenv
ln -sf ~/dotfiles/sshrc ~/.sshrc
ln -sf ~/dotfiles/tigrc ~/.tigrc
ln -sf ~/dotfiles/inputrc ~/.inputrc
ln -sf ~/dotfiles/globalrc ~/.globalrc
ln -sf ~/dotfiles/irbrc ~/.irbrc
ln -sf ~/dotfiles/sshrc.d ~/.sshrc.d
# .config
mkdir -p ~/.config
ln -sf ~/dotfiles/dotconfig/rsync ~/.config/
ln -sf ~/dotfiles/dotconfig/wezterm ~/.config/
mkdir -p ~/.config/alacritty
ln -sf ~/dotfiles/alacritty.yml ~/.config/alacritty/alacritty.yml
# vim-plug
if [ ! -s ~/.vim/autoload/plug.vim ] ; then
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi