-
Notifications
You must be signed in to change notification settings - Fork 0
/
laptop.sh
35 lines (27 loc) · 981 Bytes
/
laptop.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
#Stops script if there is an error
set -e
info_echo "Installing or updating chezmoi ..."
brew bundle --file=- <<EOF
brew 'chezmoi'
EOF
if [ ! -f "$HOME/.config/chezmoi/chezmoi.toml" ]; then
info_echo "Applying dotfiles with chezmoi ..."
chezmoi init --apply --verbose https://github.com/ibll/dotfiles.git
chmod 0600 "$HOME/.config/chezmoi/chezmoi.toml"
fi
# Keep-alive: update existing `sudo` time stamp until `.macos` has finished
while true; do
sudo -n true
sleep 60
kill -0 "$$" || exit
done 2>/dev/null &
# App #
# #
# iTerm #
# Specify the preferences directory
defaults write com.googlecode.iterm2 PrefsCustomFolder -string "~/.dotfiles/System/iTerm/Settings"
# Tell iTerm to use the custom preferences in the directory
defaults write com.googlecode.iterm2 LoadPrefsFromCustomFolder -bool true
# Install iTerm custom theme
open "${HOME}/.dotfiles/System/iTerm/Lovelace_Trans_Dark.itermcolors"