-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
executable file
·37 lines (31 loc) · 1.62 KB
/
init.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
#!/bin/zsh
DOTFILES_ROOT=`ghq root`/github.com/kowwwwji/dotfiles
for i in ./.* ; do
[[ -f $i ]] \
&& ln -nfs ${DOTFILES_ROOT}/${i##./} ${HOME}/${i##./}
done;
mkdir -p ${HOME}/.config/vim/
ln -nfs ${DOTFILES_ROOT}/.config/vim/plugins ${HOME}/.config/vim/
ln -nfs ${DOTFILES_ROOT}/.config/vim/UltiSnips ${HOME}/.config/vim/
ln -nfs ${DOTFILES_ROOT}/.config/vim/coc-settings.json ${HOME}/.config/vim/coc-settings.json
ln -nfs ${DOTFILES_ROOT}/.config/starship.toml ${HOME}/.config/starship.toml
ln -nfs ${DOTFILES_ROOT}/.config/lazydocker/config.yml ${HOME}/.config/lazydocker/config.yml
ln -nfs ${DOTFILES_ROOT}/.config/lazygit/config.yml ${HOME}/.config/lazygit/config.yml
ln -nfs ${DOTFILES_ROOT}/.config/memo ${HOME}/.config/
ln -nfs ${DOTFILES_ROOT}/.config/nvim ${HOME}/.config/
ln -nfs ${DOTFILES_ROOT}/.config/sheldon ${HOME}/.config/
ln -nfs ${DOTFILES_ROOT}/.config/karabiner/karabiner.json ${HOME}/.config/karabiner/karabiner.json
ln -nfs ${DOTFILES_ROOT}/.config/karabiner/assets/complex_modifications/ ${HOME}/.config/karabiner/assets/complex_modifications/
mkdir ${HOME}/.config/git/ && touch ${HOME}/.config/git/.gitconfig.local
mkdir ${HOME}/.ssh && touch ${HOME}/.ssh/config
ln -nfs ${DOTFILES_ROOT}/.zsh $HOME
ln -nfs ${DOTFILES_ROOT}/.scripts $HOME
VSCODE_USER_DIR="${HOME}/Library/Application Support/Code/User"
if [[ -d $VSCODE_USER_DIR ]]; then
for i in ./.vscode/*; do
cp ${DOTFILES_ROOT}/${i#./} "$VSCODE_USER_DIR${i##./.vscode}"
done
fi
TPM_ROOT=${HOME}/.tmux/plugins/tpm
[[ ! -e $TPM_ROOT ]] && git clone https://github.com/tmux-plugins/tpm $TPM_ROOT
ln -nfs ${DOTFILES_ROOT}/.tmux/.tmux.dev.conf ${HOME}/.tmux