mac 使用记录

tcp

netstat -vanp tcp
复制代码

vim/shell color

# ~/bash_profile
  export PS1="\[\033[34m\]\u\[\033[m\]@\[\033[m\]\h:\[\033[33;34m\]\w\[\033[m\]\$ "
  export CLICOLOR=1
  export LSCOLORS=ExFxBxDxCxegedabagacad
# ~/.vimrc
  filetype plugin indent on
  set term=builtin_ansi
  syntax on
复制代码

disable apsd

# Recovery env
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

# Enable key repeat in mac (Vintage)
$ 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值