{"id":19638033,"url":"https://github.com/mayandev/macbook-starter-handbook","last_synced_at":"2025-02-26T22:17:21.476Z","repository":{"id":97881990,"uuid":"464525061","full_name":"Mayandev/macbook-starter-handbook","owner":"Mayandev","description":"拿到一台新的 Macbook 时，我应该做什么？","archived":false,"fork":false,"pushed_at":"2022-03-09T08:56:47.000Z","size":242,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-23T22:49:50.007Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mayandev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-28T14:55:50.000Z","updated_at":"2024-10-22T15:03:22.000Z","dependencies_parsed_at":"2023-04-25T14:11:14.470Z","dependency_job_id":null,"html_url":"https://github.com/Mayandev/macbook-starter-handbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayandev%2Fmacbook-starter-handbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayandev%2Fmacbook-starter-handbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayandev%2Fmacbook-starter-handbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayandev%2Fmacbook-starter-handbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mayandev","download_url":"https://codeload.github.com/Mayandev/macbook-starter-handbook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240941516,"owners_count":19882063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T12:37:27.160Z","updated_at":"2025-02-26T22:17:21.455Z","avatar_url":"https://github.com/Mayandev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e Author: [@mayandev](https://github.com/mayandev)\n\u003e \n\u003e 拿到一台新的 Macbook 时，我应该做什么？\n\u003e \n\u003e 按照自己的 Mac 使用习惯写下此份手册，方便使用新的电脑时，可以快速配置好相应的环境以及软件，个人向（偏前端），实用为主，长期维护，不定期更新。\n\n## 软件\n\n-   [Homebrew](https://brew.sh/)，命令的方式安装 App\n    \n    ```Bash\n    # 安装，需要开机密码\n    /bin/bash -c  $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh) \n    ```\n-   [Typora](https://typora.io/#download) （很好用的本地 Markdown 编辑器，不过现在收费了，不想付费可以选择替代品 [Obsidian](https://obsidian.md/)、[FSNotes](https://github.com/glushchenko/fsnotes)）\n-   [Raycast](https://www.raycast.com/)，和 Alfred 一样好用的启动器，支持剪切板、分屏等等一些插件，一个顶 N 个\n-   [iterm2](https://iterm2.com/)， 非常好用的终端，配合 zsh or fish 使用\n-   [fig](https://fig.io/)，命令行提示工具\n-   [The Unarchiver](https://theunarchiver.com/)，必备解压工具\n-   [Mos](https://github.com/Caldis/Mos)，平滑鼠标滚动效果，或单独设置滚动方向的小工具\n    \n\n## 环境\n\n-   vscode 配置一个 code 的启动命令，`shift+cmd+p` 打开命令面板，输入 code 并选择 install，这样就可以通过`code ./dir/`命令行直接打开指定文件夹。\n\t\t\n    ![](./images/vscode.png)\n\n    -   登陆账号同步自己设置以及常用插件(待更新...)\n-   [iterm2](https://iterm2.com/) + [fish shell](https://fishshell.com/) + [starship](https://starship.rs/)， fish 有很好的提示（个人认为比 zsh 好用），[starship](https://starship.rs/) 则可以让终端更加智能和好看。\n    -   安装 fish: `brew install fish`，命令行输入 `fish` 启用。\n    -   安装 omf，是 fish 的增强工具：`curl -L https://get.oh-my.fish | fish`，方便安装插件\n    -   切换默认的 shell 为 fish：`chsh -s /usr/local/bin/fish`\n    -   NVM 不支持 fish shell，推荐安装这个[插件](https://github.com/jorgebucaran/nvm.fish)，减少配置过程。\n    -   安装 starship：`brew install starship`，`vim ~``/.config/fish/config.fish` 的最后，添加以下内容，使shell在启动时加载 starship 和 NVM\n    ```Plaintext\n    starship init fish | source\n    nvm use 14\n    ```\n    -   starship 本身有预设的配置，自己在其基础上加了一些配置（[参考配置](https://github.com/Mayandev/macbook-starter-handbook/blob/main/starship.toml)），主要作用就是将终端用户名改成“➜”，电脑低于一定电量时显示 💀emoji。输入 `starship config` 打开配置文件，使用 vim 操作。\n    -   iterm2 的外观设置直接导入[自用的配置文件](https://github.com/Mayandev/macbook-starter-handbook/blob/main/iterm2_config.json)，系统设置---\u003eProfile---\u003eOther Actions---\u003eImport Json Profile，其中 Non-ASCII 字符使用到了 Nerd Font，需要先[下载并安装](https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FantasqueSansMono.zip)。\n    \n    ![](./images/iterm2.png)\n\n    -   设置 [alias](https://gist.github.com/tikolakin/d59b4fc87c0af9720d0d)，方便快速启动项目\n    \n\n## 设置\n\n### 访达\n\n-   `ctrl+cmd+g` 输入 `/` 进入系统根目录，拖动🏠 user 目录到侧边栏\n-   在 user 目录下新建 Developer 文件夹，存放代码，拖放到侧边栏\n\n![](./images/finder.png)\n\n### Touch Bar\n\n设置：系统偏好设置---\u003e键盘---\u003e自定义功能栏，将默认的 Siri 图标替换为屏幕锁定，方便快速锁屏。\n\n![](./images/touchbar.png)\n\n### 触控板\n\n设置轻点来点按：系统偏好设置---\u003e触控板---\u003e轻点来点按，更多手势全选上。\n\n## Chrome 插件\n\n- [FeHelper](https://chrome.google.com/webstore/detail/fehelper%E5%89%8D%E7%AB%AF%E5%8A%A9%E6%89%8B/pkgccpejnmalmdinmhkkfafefagiiiad?utm_source=chrome-ntp-icon)，满足你对前端一切想象的开发工具\n- [划词翻译](https://chrome.google.com/webstore/detail/%E5%88%92%E8%AF%8D%E7%BF%BB%E8%AF%91/ikhdkkncnoglghljlkmcimlnlhkeamad/related?hl=zh-CN)，有 Google、Bing 和 DeepL 翻译引擎\n- [Vimium](https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb)，在浏览器使用 Vim 的一些快捷键\n\n待更新...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayandev%2Fmacbook-starter-handbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayandev%2Fmacbook-starter-handbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayandev%2Fmacbook-starter-handbook/lists"}