-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (46 loc) Β· 1.58 KB
/
Makefile
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
SHELL := /bin/bash
homebrew = $(shell test -d /opt/homebrew/bin && echo -n '/opt/homebrew/bin' || echo -n '/usr/local/bin')
location := $(HOME)/.dotfiles
setup:
#
# πΊ Install brew
#
which brew || (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh -o brew.sh && \
chmod +x brew.sh && \
./brew.sh && \
rm brew.sh)
@echo
#
# π Installing apps and tools via brew
#
cd brew && "$(homebrew)/brew" bundle --no-lock
@echo
#
# π Enabling sudo via TouchID
#
echo 'auth sufficient pam_tid.so' | sudo tee /etc/pam.d/sudo_local
#
# π Making fish the default shell and configuring it
#
chsh -s "$(homebrew)/fish"
mkdir -p "$(HOME)/.config/fish"
ln -sf "$(location)/fish/config.fish" "$(HOME)/.config/fish/config.fish"
ln -sf $(location)/fish/conf.d/*.fish $(HOME)/.config/fish/conf.d/
cp "$(location)/fish/secrets.example.fish" "$(HOME)/.config/fish/conf.d/secrets.fish"
cp "$(location)/fish/local.example.fish" "$(HOME)/.config/fish/conf.d/local.fish"
ln -sf "$(location)/fish/fish_plugins" "$(HOME)/.config/fish/fish_plugins"
curl -L https://iterm2.com/shell_integration/fish -o "$(HOME)/.iterm2_shell_integration.fish"
fish -c "fisher update"
@echo
#
# β»οΈ Configuring git
#
ln -sf "$(location)/git/.gitignore_global" "$(HOME)/.gitignore_global"
ln -sf "$(location)/git/.gitconfig" "$(HOME)/.gitconfig"
#
# π MacOS System Config
#
osascript -e 'tell app "System Events" to tell appearance preferences to set dark mode to true'
defaults write com.apple.dock showhidden -bool TRUE
killall Dock
sudo pmset hibernatemode 25