-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.sh
executable file
·42 lines (28 loc) · 979 Bytes
/
main.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
#!/usr/bin/env sh
DOTIES="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# git
rm -rf $HOME/.gitconfig
rm -rf $HOME/.gitignore_global
ln -sF $DOTIES/git/.gitconfig $HOME/.gitconfig
ln -sF $DOTIES/git/.gitignore_global $HOME/.gitignore_global
# tmux
rm -rf $HOME/.tmux.conf
ln -sF $DOTIES/tmux/tmux.conf $HOME/.tmux.conf
# kitty
rm -rf $HOME/.config/kitty
ln -sF $DOTIES/kitty $HOME/.config/kitty
# nvim
rm -rf $HOME/.config/nvim
ln -sF $DOTIES/nvim $HOME/.config/nvim
# vim
rm -rf $HOME/.vimrc
ln -sF $DOTIES/.vimrc $HOME/.vimrc
if [ ! -d "$HOME/.vim/autoload" ]; then
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
# zsh
if [ ! -d "$HOME/.oh-my-zsh" ]; then
KEEP_ZSHRC=yes sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
rm -f $HOME/.oh-my-zsh/themes/zuq.zsh-theme
ln -sF $DOTIES/zsh/zuq.zsh-theme $HOME/.oh-my-zsh/themes/zuq.zsh-theme