/mac-setup

Dev-Setup For Mac (I‘M a Front End Developer)

Apache License 2.0Apache-2.0

Dev-Setup For Mac (I‘M a Front End Developer)

Today is Sat 23 Nov 2019

Model & Price

  • 2.3GHz 8-core 9th-generation Intel Core i9 processor
  • Turbo Boost up to 4.8GHz
  • AMD Radeon Pro 5500M with 4GB of GDDR6 memory
  • 32GB 2666MHz DDR4 memory
  • 1TB SSD storage¹
  • 16-inch Retina display with True Tone
  • Touch Bar and Touch ID
  • Four Thunderbolt 3 ports

CNY 25,135

Must Have

  1. system update
  2. kycloud & shadowsocks
  3. xcode-select --install
  4. brew.sh
  5. iterm2
  6. zsh
  7. visual-studio-code (extensions)

cat extensions.txt | xargs -L1 code --install-extension

setting-sync

extensions:

  vscode-leetcode
  scode-import-cost
  vscode-eslint
  remote-ssh
  prettier-vscode
  path-intellisense
  npm-intellisense
  Material-theme
  githistory
  gitblame or gitlens
  debugger-for-chrome
  code-settings-sync
  bracket-pair-colorizer
  better-comments
  carbon-now-sh
  vsliveshare
  JavaScript (ES6) code snippets
  

keybinding:

    [
        {
            "key": "alt+cmd+enter",
            "command": "git.sync"
        }
    ]
  1. google-chrome (extensions)
  • passive(Highly Suggested)
  ad-block
  refined-github
  • active
    one click extensions manager
    outline
    switchy omega
    sina-pic
    git-pod
    octotree
    uc-qrcode
    simple-read
    instapaper(optional)
    toby(or onetab)
    达达滑词翻译
  1. git
  2. nvm and yarn

nvm 需要設置環境變量:

# NVM
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
  1. postman
  2. spectacle
  3. dotfiles
  • alias
  alias cls='clear'
  alias nis='cnpm i --save'
  alias myip='curl http://ipecho.net/plain'
  alias s="sudo"
  ...
  • ZSH_THEME (agnoster for example)
  ZSH_THEME="agnoster"
  # to hide the username@hostname
  USER=``
  ...
 - .prettierrc .npmrc .yarnrc  etc

for more: please check dev-config 13. preference

  • Trackpad > Tap to click
  • Keyboard > Key Repeat > Fast
  • Keyboard > Delay Until Repeat > Short
  • Dock > Automatically hide and show the Dock
  • Security & Privacy > FileVault > Turn It On
  • Security and Privacy > Firewall > Turn It On
  • File Sharing > Turn It Off
  • iCloud > Find My Mac > Turn It On
  1. file orgnazation
  2. Finder
  • Sidebar
  • Show Path
  • Set Default Directory
  1. ssh-keygen -t rsa -b 4096 -C "email@email.com"
  2. alfred with powerpack
  3. dash
  4. switchy-host
  5. foxmail
  6. Thor
  7. iina
  8. ezip

Optional

  1. docker
  2. tree
  3. slack
  4. LaTex
  5. charles
  6. IOS Simulator & genymotion
  7. iPic
  8. DingTalk
  9. Wechat
  10. QQ
  11. cheat-sheet
  12. youdao-note
  13. karabiner-elements
  14. hexo.sh

curl -s https://xaoxuu.com/install | sh -s hexo.sh

  1. git config
[user]
	name = lucifer
	email = lucifer@tsign.cn

  1. preference
  • Trackpad > Scroll & Zoom > uncheck scroll direction: Natural
  • Users & Groups > Edit Avatar
  1. dozer (bci dozer)

bci is short for brew cask install

  1. snipaste
  2. licecap

Others

关于安装了agnoster主题有乱码的解决方法

git clone https://github.com/powerline/fonts.git --depth=1
cd fonts 
./install.sh

最后在iterm中选择字体即可,具体操作:iTerm → Preferences → Profiles → Text → Change Font→ Meslo