Skip to content

Commit

Permalink
Update ref: 4d58cf323e14132f063d10b265a49215c93c6aed
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinSuttle committed Aug 6, 2014
1 parent 47d8667 commit 9ff1a80
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .osx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
# Disable the “Are you sure you want to open this application?” dialog
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

# 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`
defaults write NSGlobalDomain NSTextShowsControlCharacters -bool true
Expand Down Expand Up @@ -117,6 +120,12 @@ defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
# Disable smart dashes as they’re annoying when typing code
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false

# Set a custom wallpaper image. `DefaultDesktop.jpg` is already a symlink, and
# all wallpapers are in `/Library/Desktop Pictures/`. The default is `Wave.jpg`.
#rm -rf ~/Library/Application Support/Dock/desktoppicture.db
#sudo rm -rf /System/Library/CoreServices/DefaultDesktop.jpg
#sudo ln -s /path/to/your/image /System/Library/CoreServices/DefaultDesktop.jpg

###############################################################################
# SSD-specific tweaks #
###############################################################################
Expand Down Expand Up @@ -394,6 +403,9 @@ defaults write com.apple.dock showhidden -bool true
# Make Dock more transparent
defaults write com.apple.dock hide-mirror -bool true

# Disable the Launchpad gesture (pinch with thumb and three fingers)
#defaults write com.apple.dock showLaunchpadGestureEnabled -int 0

# Reset Launchpad, but keep the desktop wallpaper intact
find "${HOME}/Library/Application Support/Dock" -name "*-*.db" -maxdepth 1 -delete

Expand Down Expand Up @@ -534,10 +546,14 @@ sudo mdutil -E / > /dev/null
defaults write com.apple.terminal StringEncodings -array 4

# Use a modified version of the Pro theme by default in Terminal.app
open "${HOME}/init/Mathias.terminal"
sleep 1 # Wait a bit to make sure the theme is loaded
defaults write com.apple.terminal "Default Window Settings" -string "Mathias"
defaults write com.apple.terminal "Startup Window Settings" -string "Mathias"
TERM_PROFILE='Mathias';
CURRENT_PROFILE="$(defaults read com.apple.terminal 'Default Window Settings')";
if [ "${CURRENT_PROFILE}" != "${TERM_PROFILE}" ]; then
open "${HOME}/init/${TERM_PROFILE}.terminal";
sleep 1; # Wait a bit to make sure the theme is loaded
defaults write com.apple.terminal 'Default Window Settings' -string "${TERM_PROFILE}";
defaults write com.apple.terminal 'Startup Window Settings' -string "${TERM_PROFILE}";
fi;

# Enable “focus follows mouse” for Terminal.app and all X11 apps
# i.e. hover over a window and start typing in it without clicking first
Expand Down

0 comments on commit 9ff1a80

Please sign in to comment.