-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap_osx.sh
executable file
·89 lines (78 loc) · 1.69 KB
/
bootstrap_osx.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
set -euo pipefail
# X-Code must be installed to run this
# https://docs.brew.sh/Installation#macos-requirements
# xcode-select --install
#
# You must have also installed the CLI tools OSX update
#
if [ ! -d "$HOME/.oh-my-zsh/" ]; then
echo "Installing OhMyZsh..."
zsh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
# Check for Homebrew, install if not installed
if test ! "$(which brew)"; then
echo "Installing homebrew..."
zsh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
brew update
brew upgrade
PACKAGES=(
alfred
awscli
bat
colima
docker
docker-buildx
docker-completion
eza
fd
fzf
gcc
gh
git
gnupg
gzip
jq
lazygit
mcfly
neovim
powerlevel10k
pyenv
ripgrep
thefuck
tlrc
tig
tmux
unzip
wget
yawsso
)
echo "Installing packages..."
brew install --quiet "${PACKAGES[@]}"
CASKS=(
alfred
alt-tab
appcleaner
arc
fluor
font-jetbrains-mono-nerd-font
iterm2
obsidian
spotify
)
echo "Installing cask apps..."
brew install --quiet --cask "${CASKS[@]}"
if test ! :"$(which poetry)"; then
echo "Installing poetry..."
curl -sSL https://install.python-poetry.org | python3 -
fi
if [ ! -d "$(bat --config-dir)/themes/" ]; then
echo "Getting bat themes"
zsh ./bat/get_themes.sh
fi
if [ ! -d "$HOME/.tmux/plugins/tpm/" ]; then
echo "Installing TPM..."
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
echo "TPM installed. You must open tmux, source ~/.tmux.conf and then prefix+I to install plugins"
fi
zsh ~/.dotfiles/install.sh