osx: remove extraneous lines, fix typo
This commit is contained in:
parent
828ce524ae
commit
4ff47ae1d6
14
osx.md
14
osx.md
|
@ -5,21 +5,19 @@ layout: 2017/sheet
|
|||
|
||||
### Locations of startup items
|
||||
|
||||
~/Library/LaunchAgents
|
||||
~/Library/LaunchAgents
|
||||
/System/Library/LaunchAgents/
|
||||
/System/Library/LaunchDaemons/
|
||||
/Library/LaunchAgents/
|
||||
/Library/LaunchDaemons/
|
||||
|
||||
__Running `launchctl list` show you what launch scripts are currently loaded.__
|
||||
|
||||
__Running `launchctl list` show you what launch scripts are currently loaded.__
|
||||
|
||||
### Hide desktop icons
|
||||
|
||||
defaults write com.apple.finder CreateDesktop -bool false
|
||||
killall Finder
|
||||
|
||||
|
||||
### Auto-hide other windows on dock switch
|
||||
|
||||
defaults write com.apple.dock single-app -bool TRUE
|
||||
|
@ -28,19 +26,16 @@ layout: 2017/sheet
|
|||
defaults delete com.apple.dock single-app
|
||||
killall Dock
|
||||
|
||||
|
||||
### Flush DNS
|
||||
|
||||
killall -HUP mDNSResponder # 10.8+
|
||||
dscacheutil -flushcache # 10.7 below
|
||||
|
||||
|
||||
### Turn off spotlight
|
||||
|
||||
sudo vim /etc/hostconfig # change SPOTLIGHT=-YES- to SPOTLIGHT=-NO-
|
||||
mdutil -i off /
|
||||
|
||||
|
||||
### Turn on/off proxy
|
||||
|
||||
sudo networksetup -setsocksfirewallproxystate Wi-Fi off
|
||||
|
@ -50,7 +45,6 @@ layout: 2017/sheet
|
|||
sudo networksetup -setsocksfirewallproxystate Wi-Fi on
|
||||
sudo networksetup -setsocksfirewallproxystate Ethernet on
|
||||
|
||||
|
||||
### System utils
|
||||
|
||||
- `networksetup` - Configure network (ip, dns, proxy, etc)
|
||||
|
@ -59,8 +53,7 @@ layout: 2017/sheet
|
|||
- `diskutil` - Controll disk (format, eject, unmount, etc)
|
||||
- `launchctl` - Controll running "agents"
|
||||
|
||||
|
||||
### Usefull utils
|
||||
### Useful utils
|
||||
|
||||
- `open` - open files and directories ([man](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/open.1.html))
|
||||
- `textutil` - manipulate text files of various formats ([man](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/textutil.1.html))
|
||||
|
@ -73,4 +66,3 @@ layout: 2017/sheet
|
|||
- `scutil`
|
||||
|
||||
__INFO: `brew` ([link](https://brew.sh)) is highly recomended utility__
|
||||
|
||||
|
|
Loading…
Reference in New Issue