-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap.sh
executable file
·60 lines (44 loc) · 1.71 KB
/
bootstrap.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
#!/bin/sh
##########################################
## macos setup ##
##########################################
# Install dependencies from Brewfile
brew bundle install
# Setup alacritty
ln -sf "$PWD/alacritty/alacritty.toml" ~/.config/alacritty.toml
# # Fix alacritty thin strokes on macos
defaults write org.alacritty AppleFontSmoothing -int 0
# # Setup alacritty themes
mkdir -p ~/.config/alacritty/themes
ln -sf $PWD/alacritty/themes/light.toml ~/.config/alacritty/themes/light.toml
ln -sf $PWD/alacritty/themes/dark.toml ~/.config/alacritty/themes/dark.toml
# Setup kitty (optional)
# ln -sf $PWD/kitty/kitty.conf ~/.config/kitty/kitty.conf
# ln -sf $PWD/kitty/light-theme.conf ~/.config/kitty/light-theme.conf
# ln -sf $PWD/kitty/dark-theme.conf ~/.config/kitty/dark-theme.conf
# Tmux config
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
ln -sn "$PWD/tmux/.tmux.conf" ~/.tmux.conf
# Shell theme setup
chsh -s /bin/zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
ln -sf "$PWD/zsh/.zshrc" ~/.zshrc
ln -sf "$PWD/zsh/sjdonado.zsh-theme" ~/.oh-my-zsh/themes/sjdonado.zsh-theme
# Package managers
rustup-init
# Docker
colima start
echo '"cliPluginsExtraDirs": ["/opt/homebrew/lib/docker/cli-plugins"]' >> ~/.docker/config.json
brew tap oven-sh/bun
brew install bun
brew tap amberframework/micrate
brew install micrate
# Keyboard layouts setup
cp -Rp $PWD/macos/ukelele/* "$HOME/Library/Keyboard Layouts/"
# Dotfiles symlinks
ln -sf "$PWD/bat/config" ~/.config/bat/config
ln -sf "$PWD/git/.gitconfig" ~/.gitconfig
ln -s "$PWD/.ssh/config" ~/.ssh/config
ln -s "$PWD/.mackup.cfg" ~/.mackup.cfg
# Nvim config
ln -s "$PWD/nvim" ~/.config/nvim