Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
799207b127
32
README.md
32
README.md
@ -144,7 +144,7 @@ rm -r ~/Library/Containers/com.apple.RemoteDesktop
|
|||||||
|
|
||||||
### iTunes
|
### iTunes
|
||||||
|
|
||||||
#### Stop Responding to the Keyboard Media Keys
|
#### Stop Responding to Keyboard Media Keys
|
||||||
```bash
|
```bash
|
||||||
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
|
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
|
||||||
```
|
```
|
||||||
@ -196,7 +196,7 @@ sudo defaults write /System/Library/Launch Daemons/com.apple.backupd-auto StartI
|
|||||||
hash tmutil &> /dev/null && sudo tmutil disablelocal
|
hash tmutil &> /dev/null && sudo tmutil disablelocal
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Prevent Time Machine From Prompting to Use New Hard Drives as Backup Volume
|
#### Prevent Time Machine from Prompting to Use New Hard Drives as Backup Volume
|
||||||
```bash
|
```bash
|
||||||
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
|
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
|
||||||
```
|
```
|
||||||
@ -248,7 +248,7 @@ brew install --HEAD neovim
|
|||||||
|
|
||||||
### Xcode
|
### Xcode
|
||||||
|
|
||||||
#### Install Command Line Tools Without Xcode
|
#### Install Command Line Tools without Xcode
|
||||||
```bash
|
```bash
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
```
|
```
|
||||||
@ -346,6 +346,13 @@ defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-t
|
|||||||
killall Dock
|
killall Dock
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Set Auto Show/Hide Delay
|
||||||
|
The float number defines the show/hide delay in ms.
|
||||||
|
```bash
|
||||||
|
defaults write com.apple.Dock autohide-delay -float 0 &&\
|
||||||
|
killall Dock
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Documents
|
## Documents
|
||||||
|
|
||||||
@ -591,12 +598,12 @@ caffeinate -u -t 3600
|
|||||||
sudo pmset -g
|
sudo pmset -g
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Put Display to Sleep After 15 Minutes of Inactivity
|
#### Put Display to Sleep after 15 Minutes of Inactivity
|
||||||
```bash
|
```bash
|
||||||
sudo pmset displaysleep 15
|
sudo pmset displaysleep 15
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Put Computer to Sleep After 30 Minutes of Inactivity
|
#### Put Computer to Sleep after 30 Minutes of Inactivity
|
||||||
```bash
|
```bash
|
||||||
sudo pmset sleep 30
|
sudo pmset sleep 30
|
||||||
```
|
```
|
||||||
@ -621,14 +628,14 @@ sudo systemsetup -setcomputersleep Never
|
|||||||
sudo systemsetup -setrestartfreeze on
|
sudo systemsetup -setrestartfreeze on
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Enable Chime when Charging
|
#### Enable Chime When Charging
|
||||||
Play iOS charging sound when MagSafe is connected.
|
Play iOS charging sound when MagSafe is connected.
|
||||||
```bash
|
```bash
|
||||||
defaults write com.apple.PowerChime ChimeOnAllHardware -bool true && \
|
defaults write com.apple.PowerChime ChimeOnAllHardware -bool true && \
|
||||||
open /System/Library/CoreServices/PowerChime.app
|
open /System/Library/CoreServices/PowerChime.app
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Disable Chime when Charging
|
#### Disable Chime When Charging
|
||||||
```bash
|
```bash
|
||||||
defaults write com.apple.PowerChime ChimeOnAllHardware -bool false && \
|
defaults write com.apple.PowerChime ChimeOnAllHardware -bool false && \
|
||||||
killall PowerChime
|
killall PowerChime
|
||||||
@ -780,6 +787,11 @@ dig +short myip.opendns.com @resolver1.opendns.com
|
|||||||
|
|
||||||
### Wi-Fi
|
### Wi-Fi
|
||||||
|
|
||||||
|
#### Join a Wi-Fi Network
|
||||||
|
```bash
|
||||||
|
networksetup -setairportnetwork en0 WIFI_SSID WIFI_PASSWORD
|
||||||
|
```
|
||||||
|
|
||||||
#### Scan Available Access Points
|
#### Scan Available Access Points
|
||||||
Create a symbolic link to the airport command for easy access:
|
Create a symbolic link to the airport command for easy access:
|
||||||
```bash
|
```bash
|
||||||
@ -811,6 +823,11 @@ Exchange SSID with the SSID of the access point you wish to query the password f
|
|||||||
security find-generic-password -D "AirPort network password" -a "SSID" -gw
|
security find-generic-password -D "AirPort network password" -a "SSID" -gw
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Turn on Wi-Fi Adapter
|
||||||
|
```bash
|
||||||
|
networksetup -setairportpower en0 on
|
||||||
|
```
|
||||||
|
|
||||||
## Package Managers
|
## Package Managers
|
||||||
|
|
||||||
- [Fink](http://www.finkproject.org) - The full world of Unix Open Source software for Darwin.
|
- [Fink](http://www.finkproject.org) - The full world of Unix Open Source software for Darwin.
|
||||||
@ -1311,6 +1328,7 @@ shell for OS X, Linux, and the rest of the family.
|
|||||||
Install the latest version and set as current users' default shell:
|
Install the latest version and set as current users' default shell:
|
||||||
```bash
|
```bash
|
||||||
brew install zsh && \
|
brew install zsh && \
|
||||||
|
sudo sh -c 'echo $(brew --prefix)/bin/zsh >> /etc/shells' && \
|
||||||
chsh -s $(brew --prefix)/bin/zsh
|
chsh -s $(brew --prefix)/bin/zsh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Please ensure your pull request adheres to the following guidelines:
|
|||||||
|
|
||||||
- Search previous suggestions before making a new one, as yours may be a duplicate.
|
- Search previous suggestions before making a new one, as yours may be a duplicate.
|
||||||
- Make an individual pull request for each suggestion.
|
- Make an individual pull request for each suggestion.
|
||||||
- Titles need to be [capitalized](http://grammar.yourdictionary.com/capitalization/rules-for-capitalization-in-titles.html) properly. Don't be lazy. For help with this, see [Online Capitalize Tool](https://headlinecapitalization.com).
|
- Titles need to be [capitalized](http://grammar.yourdictionary.com/capitalization/rules-for-capitalization-in-titles.html) properly. Don't be lazy. For help with this, see [Online Capitalize Tool](https://headlinecapitalization.com). Use *Chicago Manual of Style* rules.
|
||||||
- Keep descriptions short and simple.
|
- Keep descriptions short and simple.
|
||||||
- End all descriptions with a full stop/period.
|
- End all descriptions with a full stop/period.
|
||||||
- Order titles alphabetically within each category.
|
- Order titles alphabetically within each category.
|
||||||
|
Loading…
Reference in New Issue
Block a user