-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·52 lines (42 loc) · 1 KB
/
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
47
48
49
50
51
52
#!/usr/bin/env sh
export DOTFILES=$(cd "$(dirname "$0")"; pwd)
yn() {
while true; do
read response
case $response in
[Yy]* ) return 0;;
[Nn]* ) return 1;;
* ) echo "Please answer with 'y' or 'n'.";;
esac
done
}
type brew >/dev/null 2>&1 || {
echo "🍺 Installing Homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
}
type zsh >/dev/null 2>&1 || {
echo "💻 Installing zsh..."
brew install zsh
chsh -s $(which zsh)
}
type git >/dev/null 2>&1 || {
echo "🔀 Installing git..."
brew install git
}
type sheldon >/dev/null 2>&1 || {
echo "📦 Installing sheldon..."
brew install sheldon
}
type mise >/dev/null 2>&1 || {
echo "🪛 Installing mise..."
brew install mise
}
type fzf >/dev/null 2>&1 || {
echo "🔎 Installing fzf..."
brew install fzf
}
source "$DOTFILES/script/iterm2.sh"
source "$DOTFILES/script/nvim.sh"
source "$DOTFILES/script/vscode.sh"
source "$DOTFILES/script/symlinks.sh"
echo; echo "✨ Done"