-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·123 lines (91 loc) · 3.88 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·123 lines (91 loc) · 3.88 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/usr/bin/env bash
# brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Add brew to PATH for Apple Silicon
eval "$(/opt/homebrew/bin/brew shellenv)"
brew update
# ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
# install fzf-tab
git clone https://github.com/Aloxaf/fzf-tab ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tab
# Rosetta 2 (required for some mas apps)
sudo softwareupdate --install-rosetta --agree-to-license
# Install remaining software via brew bundle
brew bundle
# Xcode
xcodes install --latest --experimental-unxip
sudo xcode-select -s /Applications/Xcode.app
# Stow configs
stow --adopt $(\ls -d */)
git restore .
# bat theme
bat cache --build
# Links
ln -sf "${HOME}/Library/Mobile Documents/com~apple~CloudDocs" "${HOME}/iCloudDrive"
cp "${HOME}/iCloudDrive/etc/.zsh_history" "${HOME}/.zsh_history"
cp "${HOME}/iCloudDrive/etc/zoxide/db.zo" "${HOME}/Library/Application Support/zoxide/db.zo"
# Defaults
# Finder
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write com.apple.finder AppleShowAllFiles -bool true
defaults write com.apple.finder ShowPathbar -bool true
defaults write com.apple.finder FXPreferredViewStyle -string Nlsv
defaults write com.apple.finder _FXSortFoldersFirst -bool true
defaults write com.apple.finder FXRemoveOldTrashItems -bool true
defaults write NSGlobalDomain NSToolbarTitleViewRolloverDelay -float 0
# disable .ds_store file creation
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
killall Finder
# Trackpad
defaults write NSGlobalDomain com.apple.trackpad.scaling -float 2.5
# Text Input - disable all auto-corrections
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false
defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false
# Scrollbars - always visible
defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
# Click wallpaper to show desktop - off
defaults write com.apple.WindowManager EnableStandardClickToShowDesktop -bool false
# Keyrepeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
defaults write -g KeyRepeat -int 1
defaults write -g InitialKeyRepeat -int 10
# Dock
defaults delete com.apple.dock
defaults import com.apple.dock com.apple.dock.plist
killall Dock
# Menubar
# Date & Time
defaults write com.apple.menuextra.clock ShowDate -int 1
defaults write com.apple.menuextra.clock Show24Hour -int 1
defaults write com.apple.menuextra.clock ShowDayOfWeek -int 1
# Xcode
defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool true
# Keyboard
# german nodeadkeys
defaults delete com.apple.HIToolbox
defaults import com.apple.HIToolbox com.apple.HIToolbox.plist
# Moom
defaults delete com.manytricks.Moom
defaults import com.manytricks.Moom com.manytricks.Moom.plist
# Preferences
defaults delete com.lwouis.alt-tab-macos
defaults import com.lwouis.alt-tab-macos com.lwouis.alt-tab-macos.plist
defaults delete me.guillaumeb.MonitorControl
defaults import me.guillaumeb.MonitorControl me.guillaumeb.MonitorControl.plist
# Amphetamine
defaults delete com.if.Amphetamine
defaults import com.if.Amphetamine com.if.Amphetamine.plist
# Flow
defaults delete design.yugen.Flow
defaults import design.yugen.Flow design.yugen.Flow.plist
# ColorSlurp
defaults delete com.IdeaPunch.ColorSlurp
defaults import com.IdeaPunch.ColorSlurp com.IdeaPunch.ColorSlurp.plist
# TomatoBar
defaults delete com.github.ivoronin.TomatoBar
defaults import com.github.ivoronin.TomatoBar com.github.ivoronin.TomatoBar.plist
# Reboot