-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·39 lines (32 loc) · 892 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
#!/bin/bash
# Create symbolic link
DOT_FILES=(
.gemrc
.inputrc
.irbrc
.minttyrc
.pryrc
.ptconfig.toml
.tigrc
.vimrc
.zshenv
.zshrc
)
for file in "${DOT_FILES[@]}"; do
ln -fs "$HOME"/dotfiles/"$file" "$HOME"/"$file"
done
# git
mkdir -p "$HOME"/.config/git
ln -fs "$HOME"/dotfiles/git/config "$HOME"/.config/git/config
ln -fs "$HOME"/dotfiles/git/ignore "$HOME"/.config/git/ignore
# starship
ln -fs "$HOME"/dotfiles/starship.toml "$HOME"/.config/starship.toml
# nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install node
./npm_install.sh
./go_install.sh
./mac_install.sh
# HomebrewでinstallしたGitのdiff-highlightを有効にする
# https://udomomo.hatenablog.com/entry/2019/12/01/181404
sudo ln -s /opt/homebrew/share/git-core/contrib/diff-highlight/diff-highlight /usr/local/bin/diff-highlight