Taiyi dev

開發環境設定

環境

Node.js

https://nodejs.org/zh-tw

Python

舊專案需要2.7版

套件管理工具

Homebrew

https://brew.sh/

nvm

https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating

Manage different versions of nodejs.

xcode-select --install

yarn/pnpm

npm install -g yarn
npm install -g pnpm

Git

git config --global alias.co checkout
git config --global alias.st status

Changes will be saved in ~/.gitconfig

Editor

Oh-my-zsh

https://ohmyz.sh/#install

theme: powerlevel10k

plugins:

Iterm2

https://iterm2.com/

下載配色檔item2-color-schemes
Settings > Profiles > Colors > 右下角下拉選單import檔案

tmux

brew install tmux

plugins manager: tpm

~/.tmux.conf
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'

run '~/.tmux/plugins/tpm/tpm'

themes: Nord tmux

~/.tmux.conf
# plugins
+ set -g @plugin "arcticicestudio/nord-tmux"

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'

run '~/.tmux/plugins/tpm/tpm'

Press prefix + I to install plugins

使用目前路徑分割視窗

bind-key - split-window -v -c '#{pane_current_path}'
bind-key | split-window -h -c '#{pane_current_path}'

neovim

brew install neovim
brew install ripgrep  # search words in files

lazyvim

https://www.lazyvim.org/installation

SSH

App

Slack

https://slack.com/intl/zh-tw/downloads/mac

Vscode

https://code.visualstudio.com/download

Extensions:

  1. Prettier - Code formatter
  2. Vim
  3. ES7+ React/Redux/React-Native snippets
  4. GitLens

Shortcut:

// 左右移動分頁
[
  {
      "key": "shift+cmd+]",
      "command": "workbench.action.nextEditor"
  },
  {
      "key": "shift+cmd+[",
      "command": "workbench.action.previousEditor"
  }
]
// cmd + 數字鍵跳到第n個分頁
[
  {
      "key": "cmd+0",
      "command": "workbench.action.openLastEditorInGroup"
  },
  {
      "key": "cmd+1",
      "command": "workbench.action.openEditorAtIndex1"
  },
  {
      "key": "cmd+2",
      "command": "workbench.action.openEditorAtIndex2"
  },
  {
      "key": "cmd+3",
      "command": "workbench.action.openEditorAtIndex3"
  },
  {
      "key": "cmd+4",
      "command": "workbench.action.openEditorAtIndex4"
  }
]

Obsidian

https://obsidian.md/download