1
0
mirror of https://github.com/danbee/mac-setup synced 2025-03-04 08:39:10 +00:00

Compare commits

..

4 Commits

4 changed files with 29 additions and 6 deletions

View File

@ -2,6 +2,7 @@ tap "thoughtbot/formulae"
tap "heroku/brew"
brew "asdf"
brew "chunkwm"
brew "diceware"
brew "direnv"
brew "git"
brew "heroku"

View File

@ -41,7 +41,7 @@ defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
defaults write com.apple.LaunchServices LSQuarantine -bool false
# Remove duplicates in the “Open With” menu (also see `lscleanup` alias)
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
# /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
# Display ASCII control characters using caret notation in standard text views
# Try e.g. `cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt`
@ -135,11 +135,11 @@ defaults write com.apple.finder QuitMenuItem -bool true
# Finder: disable window animations and Get Info animations
defaults write com.apple.finder DisableAllAnimations -bool true
# Show icons for hard drives, servers, and removable media on the desktop
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
# Don't show icons for hard drives, servers, and removable media on the desktop
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool false
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool false
defaults write com.apple.finder ShowMountedServersOnDesktop -bool false
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool false
# Finder: show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true

18
lib/tools.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
export LDFLAGS="-L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/zlib/include"
cd "$HOME"
for tool in `awk -F " " '{print $1}' .tool-versions`; do
asdf plugin-add "$tool"
if [ "$tool" == "nodejs" ]; then
bash "$HOME/.asdf/plugins/nodejs/bin/import-release-team-keyring"
fi
done
asdf install
cd -

View File

@ -69,4 +69,8 @@ step "Set git author"
step "Tweaking macOS config settings (takes a while)"
"$MAC_SETUP_DIR/lib/macos.sh"
# Install language tools
step "Installing language tools"
"$MAC_SETUP_DIR/lib/tools.sh"
echo "${GREEN}${WHITE}${BOLD}Done!${NC} 🎉"