-
Notifications
You must be signed in to change notification settings - Fork 0
/
.macos
executable file
·66 lines (43 loc) · 2.72 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env zsh
# https://github.com/mathiasbynens/dotfiles/blob/master/.macos
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# git config --global url."[email protected]:".insteadOf "https://github.com/"
sudo spctl --master-disable
# Show dotfiles by default
defaults write com.apple.finder AppleShowAllFiles -bool true
defaults write com.apple.finder PathBarRootAtHome -bool true
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
defaults write NewWindowTargetPath -string "file:///Users/issenn/"
killall Finder
# disable 'open safe files after downloading' in Safari for Mac
defaults write com.apple.Safari AutoOpenSafeDownloads -boolean false
# defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true
# # Trackpad: enable tap to click for this user and for the login screen
# defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true # enable "Tap To Click" feature
# defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# # defaults -currentHost write 'Apple Global Domain' com.apple.mouse.tapBehavior -int 1
# Disable transparency in the menu bar and elsewhere on Yosemite
defaults write com.apple.universalaccess reduceTransparency -bool true
# Initial keep file
stow -D .keep && stow .keep
# Install Iterm2 {{{1
stow -D iterm2-config && stow iterm2-config
defaults write com.googlecode.iterm2 PrefsCustomFolder -string "~/.config/iterm2/Preferences"
defaults write com.googlecode.iterm2 LoadPrefsFromCustomFolder -bool true
defaults write com.googlecode.iterm2 NoSyncNeverRemindPrefsChangesLostForFile -bool true
defaults write com.googlecode.iterm2 NoSyncNeverRemindPrefsChangesLostForFile_selection -int 1
defaults write com.googlecode.iterm2 SUEnableAutomaticChecks -bool false
defaults write com.googlecode.iterm2 SUSendProfileInfo -bool false
defaults write com.googlecode.iterm2 NoSyncDynamicProfileChangeWillBeLost_SilenceUntil -float 31536000000000
defaults write com.googlecode.iterm2 NoSyncDynamicProfileChangeWillBeLost_selection -int 0
# defaults read com.googlecode.iterm2 PrefsCustomFolder
# defaults read com.googlecode.iterm2 LoadPrefsFromCustomFolder
# defaults read com.googlecode.iterm2 NoSyncNeverRemindPrefsChangesLostForFile
# defaults read com.googlecode.iterm2 NoSyncNeverRemindPrefsChangesLostForFile_selection
# defaults read com.googlecode.iterm2 SUEnableAutomaticChecks
# defaults read com.googlecode.iterm2 SUSendProfileInfo
# defaults read com.googlecode.iterm2 NoSyncDynamicProfileChangeWillBeLost_SilenceUntil
# defaults read com.googlecode.iterm2 NoSyncDynamicProfileChangeWillBeLost_selection
# }}}1