Last active
August 29, 2015 14:22
-
-
Save ishu3101/3429bf590fea9fd25b18 to your computer and use it in GitHub Desktop.
Change Preference/Settings in Mac using the terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # always show tabs in terminal | |
| defaults write com.Apple.Terminal ShowTabBar 1 | |
| # enable quick look of folders | |
| defaults write com.apple.finder QLEnableXRayFolders -boolean YES | |
| # allow quitting finder via ⌘ + Q; doing so will also hide desktop icons | |
| defaults write com.apple.finder QuitMenuItem -bool YES; killall Finder | |
| # show hidden files | |
| defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder | |
| # show all filename extensions | |
| defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
| # show status bar | |
| defaults write com.apple.finder ShowStatusBar -bool true | |
| # show path bar | |
| defaults write com.apple.finder ShowPathbar -bool true | |
| # allow text selection in Quick Look | |
| defaults write com.apple.finder QLEnableTextSelection -bool true | |
| # Display full POSIX path as Finder window title | |
| defaults write com.apple.finder _FXShowPosixPathInTitle -bool true | |
| # When performing a search, search the current folder by default | |
| defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" | |
| # Disable the warning when changing a file extension | |
| defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false | |
| # show a list of your recently used applications | |
| defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'; killall Dock | |
| # put your name in the login window | |
| sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "'Property of YOUR NAME <YOU@YOUR DOMAIN>'" | |
| # Menu bar: show remaining battery time & percentage | |
| defaults write com.apple.menuextra.battery ShowPercent -string "NO" | |
| defaults write com.apple.menuextra.battery ShowTime -string "YES" | |
| # Avoid creating .DS_Store files on network volumes | |
| defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
| # always show status bar in safari | |
| defaults write com.apple.Safari ShowStatusBar -bool true | |
| # add google chrome to dock | |
| defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Google Chrome.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>' | |
| # Add a spacer to the left side of the Dock (where the applications are) | |
| defaults write com.apple.dock persistent-apps -array-add ‘{tile-data={}; tile-type=“spacer-tile”;}’ | |
| # Add a spacer to the right side of the Dock (where the Trash is) | |
| defaults write com.apple.dock persistent-others -array-add ‘{tile-data={}; tile-type=“spacer-tile”;}’ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment