-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap-macos
executable file
·40 lines (35 loc) · 1.04 KB
/
bootstrap-macos
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
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
if [ -z "${HOMEBREW_REPOSITORY:-}" ]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
/opt/homebrew/bin/brew install \
ag \
cmake \
fd \
fzf \
git-delta \
helix \
ripgrep \
tmux \
zoxide
mkdir -p ~/.config
if [[ ! -d ~/.config/helix ]]; then
git clone [email protected]:crockeo/helix-config ~/.config/helix
fi
# Configuring some macOS things that I like:
#
# - Open + close the dock instantly.
# - Make the keyboard repeat more quickly.
# - Make the keyboard start repeating more quickly.
echo >&2 "Configuring dock to appear instantly..."
defaults write com.apple.dock autohide-delay -int 0
defaults write com.apple.dock autohide-time-modifier -int 0
killall Dock
echo >&2 "Done!"
echo >&2 "Configuring keyboard repeat rate..."
defaults write -g InitialKeyRepeat -int 15
defaults write -g KeyRepeat -int 2
echo >&2 "Done! You'll have to log out and back in for this to take effect."