-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·33 lines (27 loc) · 907 Bytes
/
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
#!/usr/bin/env sh
DOTFILES=(".gitconfig"
".prompt.zsh"
".remarkrc"
".zprofile"
".zshenv"
".zshrc"
".node-cli/.envrc"
".node-cli/.nvmrc"
".node-cli/package.json"
"Library/Application Support/Beyond Compare/BCColors.xml"
"Library/Application Support/Beyond Compare/BCFileFormats.xml"
"Library/Application Support/Beyond Compare/BCPreferences.xml"
"Library/Application Support/Code/User/settings.json")
DOTDIRS=(".node-cli"
"Library/Application Support/Beyond Compare"
"Library/Application Support/Code/User")
for dotdir in "${DOTDIRS[@]}"
do
mkdir -p "$HOME/$dotdir"
done
for dotfile in "${DOTFILES[@]}"
do
ln -sf "$HOME/.dotfiles/$dotfile" "$HOME/$dotfile"
done
touch "$HOME/.zprofile.user"
echo 'Now, run install-packages.sh to install Homebrew/NPM packages'