Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/mrgnw/dotfiles. My shell customizations - aliases, functions, and themes.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778# todo: set background dir to icloud
# - set background to images in directory to $BG_DIR (defined in macos.zsh)# download: use github.com/farnots/iCloudDownloader # brew install icloud-downloader / icd # icd $ICLOUD/images/background # icd $ICLOUD/images/background/vertical
# - set $BG_DIR as background dir
echo "📈 CPU usage shows in Activity Monitor Dock icon"defaults write com.apple.ActivityMonitor IconType -int 5
# Many prefs taken from github.com/mathiasbynens/dotfiles/blob/master/.macos# turn on tab completion for brewln -s "$(brew --prefix)/Library/Contributions/brew_zsh_completion.zsh" /usr/local/share/zsh/site-functions
echo "🌌 Screenshots"echo " 📂 ~/Pictures/Screenshots "mkdir ~/Pictures/ScreenshotsscreenshotDir ~/Pictures/Screenshotsecho " 🏷 Name = {date & time}.png"defaults write com.apple.screencapture name ; killall SystemUIServer
# Move apps that I rarely use into the Utilities folderburyThese=( 'Automator' 'Chess' 'DVD Player' 'Font Book' 'Image Capture' 'Launchpad' 'Mail' 'Mission Control' 'Photo Booth' 'Stickies' 'TextEdit' 'Time Machine' )echo "Burying rarely used apps to Utilities"sudo buryApp ${buryThese[@]}
# Enable apps from everywhere - makes getting set up easieropenGate
finderDefaultssafariDefaults
git config --global core.excludesfile '~/.oh-my-zsh/custom/.gitignore_global'ln -s ~/.oh-my-zsh/custom/.gitignore_global ~/.config/git/ignore
echo "App Store"init_masecho "Homebrew"init_brewecho "Node"init_node
configApps
# Disable smart quotes. Ain't nobody need thosedefaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
echo "🎯 performance"echo " 🚫 No hibernation = faster sleep"sudo pmset -a hibernatemode 0
echo "📡 App store"echo " 🔄 Auto-check for updates, daily"defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool truedefaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1echo " ⬇️ Auto-download updates"defaults write com.apple.SoftwareUpdate AutomaticDownload -int 1# Turn on app auto-updatedefaults write com.apple.commerce AutoUpdate -bool true
echo " SF Mono"cp /Applications/Utilities/Terminal.app/Contents/Resources/Fonts/*.otf ~/Library/Fonts/