diff --git a/README.md b/README.md index 641d6e4..c17a4aa 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,11 @@ Any file in the [`/copy`](/copy) subdirectory will be copied into `~/`. Any file ### /link Any file in the [`/link`](/link) subdirectory gets symlinked into `~/` with `ln -s`. Edit one or the other, and you change the file in both places. Don't link files containing sensitive data, or you might accidentally commit that data! If you're linking a directory that might contain sensitive data (like `~/.ssh`) add the sensitive files to your [.gitignore](.gitignore) file! -### /init -Scripts in the [`/init`](/init) subdirectory can be executed manually. +### /scripts +Scripts in the [`/scripts`](/scripts) subdirectory can be executed manually. -* OS X system defaults via the [init/osx_defaults.sh](init/osx_defaults.sh) script -* Homebrew formulae & casks via the [init/osx_homebrew.sh](init/osx_homebrew.sh) script +* OS X system defaults via the [scripts/osx_defaults.sh](scripts/osx_defaults.sh) script +* Homebrew formulae & casks via the [scripts/osx_homebrew.sh](scripts/osx_homebrew.sh) script ### Other Subdirectories diff --git a/init/install_homebrew.sh b/scripts/install_homebrew.sh similarity index 100% rename from init/install_homebrew.sh rename to scripts/install_homebrew.sh diff --git a/init/osx_defaults.sh b/scripts/osx_defaults.sh similarity index 93% rename from init/osx_defaults.sh rename to scripts/osx_defaults.sh index 7173725..5cd7734 100755 --- a/init/osx_defaults.sh +++ b/scripts/osx_defaults.sh @@ -17,7 +17,7 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & read -p "Enter computer name: " computerName sudo scutil --set ComputerName "$computerName" -defaultHostName="0x694b6576696e59" +defaultHostName="Kevin Yap's Computer" read -p "Enter host name [$defaultHostName]: " hostName hostName="${hostName:-$defaultHostName}" sudo scutil --set HostName "$hostName" @@ -46,15 +46,6 @@ defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 1 defaults write NSGlobalDomain AppleShowScrollBars -string "WhenScrolling" # Possible values: `WhenScrolling`, `Automatic` and `Always` -# Disable smooth scrolling -# (Uncomment if you’re on an older Mac that messes up the animation) -# defaults write NSGlobalDomain NSScrollAnimationEnabled -bool false - -# Disable opening and closing window animations -# defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false - -# Increase window resize speed for Cocoa applications -# defaults write NSGlobalDomain NSWindowResizeTime -float 0.001 # Expand save panel by default defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true @@ -81,19 +72,7 @@ defaults write NSGlobalDomain NSTextShowsControlCharacters -bool true # Disable automatic termination of inactive apps defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true -# Disable the crash reporter -# defaults write com.apple.CrashReporter DialogType -string "none" - -# Set Help Viewer windows to non-floating mode -# defaults write com.apple.helpviewer DevMode -bool true - -# Fix for the ancient UTF-8 bug in QuickLook (http://mths.be/bbo) -# Commented out, as this is known to cause problems in various Adobe apps :( -# See https://github.com/mathiasbynens/dotfiles/issues/237 -# echo "0x08000100:0" > ~/.CFUserTextEncoding - -# Reveal IP address, hostname, OS version, etc. when clicking the clock -# in the login window +# Reveal IP address, hostname, OS version, etc. when clicking the clock in the login window sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName # Restart automatically if the computer freezes @@ -188,8 +167,6 @@ systemsetup -settimezone "America/Vancouver" > /dev/null # Disable auto-correct defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false -# Stop iTunes from responding to the keyboard media keys -# launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist 2> /dev/null ############################################################################### # Screen # @@ -218,9 +195,6 @@ sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutio # Finder # ############################################################################### -# Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons -# defaults write com.apple.finder QuitMenuItem -bool true - # Finder: disable window animations and Get Info animations defaults write com.apple.finder DisableAllAnimations -bool true @@ -230,15 +204,6 @@ defaults write com.apple.finder ShowHardDrivesOnDesktop -bool false defaults write com.apple.finder ShowMountedServersOnDesktop -bool true defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true -# Finder: show hidden files by default -# defaults write com.apple.finder AppleShowAllFiles -bool true - -# Finder: show all filename extensions -# defaults write NSGlobalDomain AppleShowAllExtensions -bool true - -# Finder: show status bar -# defaults write com.apple.finder ShowStatusBar -bool true - # Finder: show path bar # defaults write com.apple.finder ShowPathbar -bool true @@ -461,9 +426,6 @@ defaults write NSGlobalDomain WebKitDeveloperExtras -bool true # Mail # ############################################################################### -# Disable send and reply animations in Mail.app -# defaults write com.apple.mail DisableReplyAnimations -bool true -# defaults write com.apple.mail DisableSendAnimations -bool true # Copy email addresses as `foo@example.com` instead of `Foo Bar ` in Mail.app defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false @@ -471,11 +433,6 @@ defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false # Add the keyboard shortcut ⌘ + Enter to send an email in Mail.app defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" -string "@\\U21a9" -# Display emails in threaded mode, sorted by date (oldest at the top) -# defaults write com.apple.mail DraftsViewerAttributes -dict-add "DisplayInThreadedMode" -string "yes" -# defaults write com.apple.mail DraftsViewerAttributes -dict-add "SortedDescending" -string "yes" -# defaults write com.apple.mail DraftsViewerAttributes -dict-add "SortOrder" -string "received-date" - # Disable inline attachments (just show the icons) defaults write com.apple.mail DisableInlineAttachmentViewing -bool true