mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-19 20:55:09 +00:00
Tweaks
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo 'start osx/set-defaults.sh'
|
#
|
||||||
|
# set-defaults.sh - Sets macOS Defaults that I like
|
||||||
|
#
|
||||||
|
# This script contains large portions from following scripts:
|
||||||
|
# - https://github.com/freekmurze/dotfiles/blob/main/macos/set-defaults.sh
|
||||||
|
#
|
||||||
|
|
||||||
# Ask for the administrator password upfront
|
# Ask for the administrator password upfront
|
||||||
sudo -v
|
sudo -v
|
||||||
@@ -226,8 +231,11 @@ defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
|
|||||||
|
|
||||||
# Enable the Develop menu and the Web Inspector in Safari
|
# Enable the Develop menu and the Web Inspector in Safari
|
||||||
defaults write com.apple.Safari IncludeDevelopMenu -bool true
|
defaults write com.apple.Safari IncludeDevelopMenu -bool true
|
||||||
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
|
defaults write com.apple.Safari \
|
||||||
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true
|
WebKitDeveloperExtrasEnabledPreferenceKey -bool true
|
||||||
|
defaults write com.apple.Safari \
|
||||||
|
com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled \
|
||||||
|
-bool true
|
||||||
|
|
||||||
# Don’t display the annoying prompt when quitting iTerm
|
# Don’t display the annoying prompt when quitting iTerm
|
||||||
#defaults write com.googlecode.iterm2 PromptOnQuit -bool false
|
#defaults write com.googlecode.iterm2 PromptOnQuit -bool false
|
||||||
@@ -268,10 +276,16 @@ defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
# Disable smart quotes as it’s annoying for messages that contain code
|
# Disable smart quotes as it’s annoying for messages that contain code
|
||||||
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false
|
defaults write com.apple.messageshelper.MessageController \
|
||||||
|
SOInputLineSettings \
|
||||||
|
-dict-add "automaticQuoteSubstitutionEnabled" \
|
||||||
|
-bool false
|
||||||
|
|
||||||
# Disable continuous spell checking
|
# Disable continuous spell checking
|
||||||
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "continuousSpellCheckingEnabled" -bool false
|
defaults write com.apple.messageshelper.MessageController \
|
||||||
|
SOInputLineSettings \
|
||||||
|
-dict-add "continuousSpellCheckingEnabled" \
|
||||||
|
-bool false
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Kill affected applications #
|
# Kill affected applications #
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Settler - my macOS setup automator
|
# Settler - my macOS setup automator
|
||||||
# Ismo Vuorinen <https://github.com/ivuorinen> 2018
|
# Ismo Vuorinen <https://github.com/ivuorinen> 2018
|
||||||
|
#
|
||||||
|
|
||||||
# Ask for the administrator password upfront
|
# Ask for the administrator password upfront
|
||||||
sudo -v
|
sudo -v
|
||||||
@@ -43,8 +44,8 @@ else
|
|||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bash ../local/bin/dfm brew install && "Installed Brewfile contents"
|
bash "$HOME/.dotfiles/local/bin/dfm" brew install && "Installed Brewfile contents"
|
||||||
bash ../local/bin/dfm dotfiles link && "Linked all dotfiles"
|
bash "$HOME/.dotfiles/local/bin/dfm" dotfiles link && "Linked all dotfiles"
|
||||||
|
|
||||||
read -r -p "Do you want to set macOS defaults? (y/N) " yn
|
read -r -p "Do you want to set macOS defaults? (y/N) " yn
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user