-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·33 lines (25 loc) · 1.48 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
#!/bin/bash
./preflight.generator.sh
./.temp.generator.sh
# install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Write permissions for brew
sudo chown -R $(whoami) /opt/homebrew /opt/homebrew/share/aclocal /opt/homebrew/share/info /opt/homebrew/share/locale /opt/homebrew/share/man/man5 /opt/homebrew/share/man/man8 /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/locks
chmod u+w /opt/homebrew /opt/homebrew/share/aclocal /opt/homebrew/share/info /opt/homebrew/share/locale /opt/homebrew/share/man/man5 /opt/homebrew/share/man/man8 /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/locks
# Install brew packages
./homebrew.sh
# After Kitty Terminal installation, icon cache should be cleared
yes | rm /var/folders/*/*/*/com.apple.dock.iconcache
killall Dock
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git ~/.oh-my-zsh/custom/plugins/zsh-autocomplete
for file in .{aliases,exports,functions,gitconfig,temp,preflight,zshrc,vimrc}; do
[ -r "$file" ] && echo "ln -s $(pwd)/$file ~/$file"
done
ln -s $(pwd)/.config/startship.toml ~/.config/startship.toml
ln -s $(pwd)/delta-themes.gitconfig ~/delta-themes.gitconfig
ln -s $(pwd)/.config/nvim ~/.config/nvim
ln -s $(pwd)/.config/kitty ~/.config/kitty
# WIP ln -s $(pwd)/.git-hooks ~/.git-hooks
# Misc
# reduce the initial wait to repeat key presses
defaults write -g InitialKeyRepeat -int 11