@@ -29,13 +29,13 @@ sudo nvram SystemAudioVolume=" "
2929defaults write com.apple.universalaccess reduceTransparency -bool true
3030
3131# Set highlight color to green
32- # defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600"
32+ defaults write NSGlobalDomain AppleHighlightColor -string " 0.764700 0.976500 0.568600"
3333
3434# Set sidebar icon size to medium
3535defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 2
3636
3737# Always show scrollbars
38- defaults write NSGlobalDomain AppleShowScrollBars -string " Automatic "
38+ defaults write NSGlobalDomain AppleShowScrollBars -string " Always "
3939# Possible values: `WhenScrolling`, `Automatic` and `Always`
4040
4141# Disable the over-the-top focus ring animation
@@ -686,13 +686,13 @@ defaults write com.apple.terminal SecureKeyboardEntry -bool true
686686defaults write com.apple.Terminal ShowLineMarks -int 0
687687
688688# Install the Solarized Dark theme for iTerm
689- open " . /init/Solarized Dark.itermcolors"
689+ open " ${HOME} /init/Solarized Dark.itermcolors"
690690
691- # Don’ t display the annoying prompt when quitting iTerm
691+ # Don' t display the annoying prompt when quitting iTerm
692692defaults write com.googlecode.iterm2 PromptOnQuit -bool false
693693
694694# Specify iterm2 preferences directory
695- defaults write com.googlecode.iterm2 PrefsCustomFolder -string " ~ /dotfiles/init/"
695+ defaults write com.googlecode.iterm2 PrefsCustomFolder -string " ${HOME} /dotfiles/init/"
696696# Tell iTerm2 to use the custom preferences in the directory
697697defaults write com.googlecode.iterm2 LoadPrefsFromCustomFolder -bool true
698698
@@ -820,6 +820,112 @@ defaults write com.google.Chrome.canary DisablePrintPreview -bool true
820820defaults write com.google.Chrome PMPrintingExpandedStateForPrint2 -bool true
821821defaults write com.google.Chrome.canary PMPrintingExpandedStateForPrint2 -bool true
822822
823+ # ##############################################################################
824+ # GPGMail 2 #
825+ # ##############################################################################
826+
827+ # Disable signing emails by default
828+ defaults write ~ /Library/Preferences/org.gpgtools.gpgmail SignNewEmailsByDefault -bool false
829+
830+ # ##############################################################################
831+ # Opera & Opera Developer #
832+ # ##############################################################################
833+
834+ # Expand the print dialog by default
835+ defaults write com.operasoftware.Opera PMPrintingExpandedStateForPrint2 -boolean true
836+ defaults write com.operasoftware.OperaDeveloper PMPrintingExpandedStateForPrint2 -boolean true
837+
838+ # ##############################################################################
839+ # SizeUp.app #
840+ # ##############################################################################
841+
842+ # Start SizeUp at login
843+ defaults write com.irradiatedsoftware.SizeUp StartAtLogin -bool true
844+
845+ # Don’t show the preferences window on next start
846+ defaults write com.irradiatedsoftware.SizeUp ShowPrefsOnNextStart -bool false
847+
848+ # ##############################################################################
849+ # Sublime Text #
850+ # ##############################################################################
851+
852+ # Install Sublime Text settings
853+ cp -r init/Preferences.sublime-settings ~ /Library/Application\ Support/Sublime\ Text* /Packages/User/Preferences.sublime-settings 2> /dev/null
854+
855+ # ##############################################################################
856+ # Spectacle.app #
857+ # ##############################################################################
858+
859+ # Set up my preferred keyboard shortcuts
860+ cp -r init/spectacle.json ~ /Library/Application\ Support/Spectacle/Shortcuts.json 2> /dev/null
861+
862+ # ##############################################################################
863+ # Transmission.app #
864+ # ##############################################################################
865+
866+ # Use `~/Documents/Torrents` to store incomplete downloads
867+ defaults write org.m0k.transmission UseIncompleteDownloadFolder -bool true
868+ defaults write org.m0k.transmission IncompleteDownloadFolder -string " ${HOME} /Documents/Torrents"
869+
870+ # Use `~/Downloads` to store completed downloads
871+ defaults write org.m0k.transmission DownloadLocationConstant -bool true
872+
873+ # Don’t prompt for confirmation before downloading
874+ defaults write org.m0k.transmission DownloadAsk -bool false
875+ defaults write org.m0k.transmission MagnetOpenAsk -bool false
876+
877+ # Don’t prompt for confirmation before removing non-downloading active transfers
878+ defaults write org.m0k.transmission CheckRemoveDownloading -bool true
879+
880+ # Trash original torrent files
881+ defaults write org.m0k.transmission DeleteOriginalTorrent -bool true
882+
883+ # Hide the donate message
884+ defaults write org.m0k.transmission WarningDonate -bool false
885+ # Hide the legal disclaimer
886+ defaults write org.m0k.transmission WarningLegal -bool false
887+
888+ # IP block list.
889+ # Source: https://giuliomac.wordpress.com/2014/02/19/best-blocklist-for-transmission/
890+ defaults write org.m0k.transmission BlocklistNew -bool true
891+ defaults write org.m0k.transmission BlocklistURL -string " http://john.bitsurge.net/public/biglist.p2p.gz"
892+ defaults write org.m0k.transmission BlocklistAutoUpdate -bool true
893+
894+ # Randomize port on launch
895+ defaults write org.m0k.transmission RandomPort -bool true
896+
897+ # ##############################################################################
898+ # Twitter.app #
899+ # ##############################################################################
900+
901+ # Disable smart quotes as it’s annoying for code tweets
902+ defaults write com.twitter.twitter-mac AutomaticQuoteSubstitutionEnabled -bool false
903+
904+ # Show the app window when clicking the menu bar icon
905+ defaults write com.twitter.twitter-mac MenuItemBehavior -int 1
906+
907+ # Enable the hidden ‘Develop’ menu
908+ defaults write com.twitter.twitter-mac ShowDevelopMenu -bool true
909+
910+ # Open links in the background
911+ defaults write com.twitter.twitter-mac openLinksInBackground -bool true
912+
913+ # Allow closing the ‘new tweet’ window by pressing `Esc`
914+ defaults write com.twitter.twitter-mac ESCClosesComposeWindow -bool true
915+
916+ # Show full names rather than Twitter handles
917+ defaults write com.twitter.twitter-mac ShowFullNames -bool true
918+
919+ # Hide the app in the background if it’s not the front-most window
920+ defaults write com.twitter.twitter-mac HideInBackground -bool true
921+
922+ # ##############################################################################
923+ # Tweetbot.app #
924+ # ##############################################################################
925+
926+ # Bypass the annoyingly slow t.co URL shortener
927+ defaults write com.tapbots.TweetbotMac OpenURLsDirectly -bool true
928+
823929# ##############################################################################
824930# Kill affected applications #
825931# ##############################################################################
@@ -835,8 +941,16 @@ for app in "Activity Monitor" \
835941 " Google Chrome" \
836942 " Mail" \
837943 " Messages" \
944+ " Opera" \
945+ " Photos" \
946+ " Safari" \
947+ " SizeUp" \
948+ " Spectacle" \
838949 " SystemUIServer" \
839950 " Terminal" \
951+ " Transmission" \
952+ " Tweetbot" \
953+ " Twitter" \
840954 " iCal" ; do
841955 killall " ${app} " & > /dev/null
842956done
0 commit comments