-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·35 lines (30 loc) · 1.18 KB
/
install.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
#!/usr/bin/env bash
set -e
if [[ "${1}" != "-i" ]]; then
echo "Installing packages and setting some defaults."
if [[ "$OSTYPE" == "darwin"* ]]; then
if ! command -v brew &>/dev/null; then
echo "Must install homebrew first"
return 1
fi
# shellcheck disable=SC2046
brew install $(cat brew.txt)
# shellcheck disable=SC2046
brew install --cask $(cat brew_casks.txt)
# Bluetooth audio settings
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool Min (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 80
else
echo "Packages are only included for OSX"
fi
fi
if ! command -v stow &>/dev/null; then
echo "stow must be installed"
return 1
fi
stow aliases git nvim psql ripgrep tmux wezterm zsh