-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·71 lines (57 loc) · 1.89 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
# Get the path to the current script
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
function install() {
if [ ! -f "$2" ]; then
ln -s "$1" "$2"
fi
}
function install_vim_plugin() {
rm -f ~/.vim/bundle/$1
ln -s $DIR/link/$1 ~/.vim/bundle/$1
}
# NOTE: This doesn't pull updates from each module's remote
git submodule update
# Kitty
mkdir -p ~/.config/kitty
install $DIR/kitty/kitty.conf ~/.config/kitty/kitty.conf
install $DIR/kitty/dracula.conf ~/.config/kitty/dracula.conf
# ZSH dotfiles
install $DIR/.zshrc ~/.zshrc
# Personal scripts
cp -R $DIR/scripts ~/scripts
# oh-my-zsh custom files
rm -rf ~/.oh-my-zsh/custom
install $DIR/custom-oh-my-zsh ~/.oh-my-zsh/custom
# Vim color schemes
mkdir -p ~/.vim/colors
rm -f ~/.vim/colors/solarized.vim
ln -s \
$DIR/link/solarized/vim-colors-solarized/colors/solarized.vim \
~/.vim/colors/solarized.vim
# Add term info to allow italics to work
tic xterm-256color-italic.terminfo
# Vim dotfiles
install $DIR/.vimrc ~/.vimrc
install $DIR/.vimrc-base ~/.vimrc-base
install $DIR/.vimrc-plug ~/.vimrc-plug
install $DIR/.vimrc-nerdtree ~/.vimrc-nerdtree
install $DIR/.vimrc-syntastic ~/.vimrc-syntastic
install $DIR/.vimrc-fzf ~/.vimrc-fzf
install $DIR/.vimrc-intelephense ~/.vimrc-intelephense
install $DIR/.vimrc-test ~/.vimrc-test
# Neovim mapping
mkdir -p $HOME/.vim/backup
mkdir -p $HOME/.config
ln -fs ~/.vim $HOME/.config/nvim
ln -fs ~/.vimrc $HOME/.config/nvim/init.vim
ln -fs ~/.vimrc-base $HOME/.config/nvim/.vimrc-base
ln -fs ~/.vimrc-nerdtree $HOME/.config/nvim/.vimrc-nerdtree
ln -fs ~/.vimrc-syntastic $HOME/.config/nvim/.vimrc-syntastic
ln -fs ~/.vimrc-fzf $HOME/.config/nvim/.vimrc-fzf
ln -fs ~/.vimrc-intelephense $HOME/.config/nvim/.vimrc-intelephense
ln -fs ~/.vimrc-test $HOME/.config/nvim/.vimrc-test
## vim-plug plugin manager
rm -rf ~/.vim/autoload
mkdir -p ~/.vim/autoload
install $DIR/link/vim-plug/plug.vim ~/.vim/autoload/plug.vim