-
Notifications
You must be signed in to change notification settings - Fork 0
/
.formulae
executable file
·42 lines (31 loc) · 848 Bytes
/
.formulae
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 bash
should_brew_install() {
! brew list | grep "$1" >/dev/null
}
if should_brew_install git
then
brew install git
ln -sf "$DOTFILES/.config/gitconfig" "$HOME/.gitconfig"
ln -sf "$DOTFILES/.config/gitignore" "$HOME/.gitignore"
fi
if should_brew_install mas
then
brew install mas
fi
if should_brew_install asdf
then
brew install asdf
fish "$(brew --prefix asdf)/libexec/asdf.fish"
asdf plugin add nodejs
asdf plugin add golang
ln -sf "$DOTFILES/.config/tool-versions" "$HOME/.tool-versions"
ln -sf "$DOTFILES/.config/default-npm-packages" "$HOME/.default-npm-packages"
ln -sf "$DOTFILES/.config/npmrc" "$HOME/.npmrc"
ln -sf "$DOTFILES/.config/prettierrc" "$HOME/.prettierrc"
asdf install
fi
if should_brew_install rustup-init
then
brew install rustup-init
rustup-init -y --no-modify-path
fi