tcp
netstat -vanp tcp
复制代码
vim/shell color
export PS1="\[\033[34m\]\u\[\033[m\]@\[\033[m\]\h:\[\033[33;34m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
filetype plugin indent on
set term=builtin_ansi
syntax on
复制代码
disable apsd
csrutil enable
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.apsd.plist
复制代码
Disable Mac Keychains
Finder -> Go -> (press 'option') Library -> empty Keychains (dir) -> Reboot
复制代码
Hotkey
Home Fn + 左方向
End Fn + 右方向
PageUP Fn + 上方向
PageDOWN Fn + 下方向
向前删除 delete
向后删除 Fn + delete
复制代码
sublime
$ defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false
$ defaults write -g ApplePressAndHoldEnabled -bool false
复制代码
xcode
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
复制代码
homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
复制代码
yarn
brew install yarn
复制代码
build
yarn run clean && yarn && yarn gulp build --platform=os
复制代码
转载于:https://juejin.im/post/5c4f0b775188253a317b7997