-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·47 lines (36 loc) · 862 Bytes
/
setup.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
#!/bin/zsh
current=`pwd`
dot="$HOME/git/dotfiles"
cd $HOME
rm -rf .vim && ln -sf $dot/vim .vim
ln -sf $dot/zsh/zshrc .zshrc
ln -sf $dot/rgignore .rgignore
if [[ ! -z $os ]]; then
ln -si $dot/gitconfig.$os .gitconfig
else
## set mac as default
ln -si $dot/gitconfig.mac .gitconfig
fi
ln -sf $dot/rustfmt.toml .rustfmt.toml
ln -sf $dot/wezterm.lua .wezterm.lua
if [[ -d .nutstore ]]; then
ln -sf $dot/nutstore/customExtRules.conf .nutstore/db/customExtRules.conf
fi
ln -sf $dot/fdignore .fdignore
[[ ! -d .config ]] && mkdir .config
cd .config || exit 1
# -L: soft link
if [[ -L nvim ]]; then
rm nvim
fi
ln -sf $dot/vim/packer nvim
ln -sf $dot/zsh/starship.toml starship.toml
ln -sf $dot/pycodestyle pycodestyle
p=".docker"
[[ ! -d $p ]] && mkdir $p
cd $p
ln -sf $dot/docker/config.json config.json
cd -
ln -sf $dot/nix nix
cd $current
exit 0