{"id":22300781,"url":"https://github.com/tsui66/dotfile","last_synced_at":"2026-01-28T07:03:35.975Z","repository":{"id":72502678,"uuid":"112560841","full_name":"tsui66/dotfile","owner":"tsui66","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-28T01:15:10.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T20:43:58.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim script","has_issues":false,"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/tsui66.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":"2017-11-30T03:39:16.000Z","updated_at":"2019-03-04T02:15:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c46dd0f-fe90-4114-a634-c49fae28a936","html_url":"https://github.com/tsui66/dotfile","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/tsui66%2Fdotfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsui66%2Fdotfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsui66%2Fdotfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsui66%2Fdotfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsui66","download_url":"https://codeload.github.com/tsui66/dotfile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245559957,"owners_count":20635471,"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-12-03T18:13:55.295Z","updated_at":"2026-01-28T07:03:35.860Z","avatar_url":"https://github.com/tsui66.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mac 系统配置以及功能介绍\n\n这是一个关于 `Mac` 系统的基本配置，和功能的配置文件，以及一些功能的介绍等等\n\n## 系统设置\n\n### 触控板\n\n- 系统设置 \u003e 触控板\n     - 光标与点击\n        - [x] 轻拍来点按\n        - [x] 辅助点按\n        - [x] 查找\n        - [x] 三指拖移\n    - 滚动缩放\n        - [x] 默认全选\n    - 更多手势\n        - [x] 默认全选\n\n### Dock\n\n- 置于屏幕上的位置：根据自己喜好设置左下右。\n- 设置 Dock 图标更小（大小随个人喜好）。\n- [x] 自动显示和隐藏 Dock。\n\n### Finder\n\n- 设置经常使用的文件夹，比如下载文件夹。右键选择排列方式为种类。设置在左上方的显示选项。\n\n### 菜单栏\n\n- 去掉蓝牙等无需经常使用的图标。\n- 将电池显示设置为百分比。\n\n### 互联网账户\n\n- 添加 iCloud 用户，同步日历，联系人和 Find my mac 等等。\n\n### Xcode\n\n从 `App store` 或苹果开发者网站安装 [Xcode](https://developer.apple.com/xcode/) 。\n\n紧接着，安装` Xcode command line tools`，运行：\n\n`xcode-select --install`\n\n运行命令后，按照指引，你将完成 `Xcode command line tools` 安装。\n\n`译注`:\n\n如果你不是一名 `iOS` 或 `OS X` 开发者，可以跳过安装 `XCode` 的过程，直接安装 `Xcode command line tools` 。安装完成后，你将可以直接在 `terminal` 中使用主要的命令，比如：`make`, `GCC`, `clang`, `perl`, `svn`, `git`, `size`, `strip`, `strings`, `libtool`, `cpp`等等。\n\n如果你想了解 `Xcode command line tools` 包含多少可用的命令，可以到 `/Library/Developer/CommandLineTools/` 查看。\n\n## `Mac` 配置安装\n\n如果你不想自己单独配置，或嫌配置麻烦，可以通过打开终端运行 `git clone` 该配置文件库，并复制下面代码运行（不包括$）。\n\n```bash\n$ git clone https://github.com/qw9002/dotfile.git ~/\n$ cd dotfile\n$ ./startup.sh\n```\n`说明`：\n\n该配置文件中有vim配置文件、tmux复合多用窗口配置文件\n\n\n# 相关工具 Mac 工具的介绍和使用\n\n## Homebrew\n\n包管理工具可以让你安装和更新程序变得更方便，目前在 `OS X` 系统中最受欢迎的包管理工具是 [Homebrew](https://brew.sh)。\n\n### 安装\n\n在安装 `Homebrew` 之前，需要将 `Xcode Command Line Tools` 安装完成，这样你就可以使用基于 `Xcode Command Line Tools` 编译的 `Homebrew`。\n\n在 `terminal` 中复制以下命令（不包括 $），跟随指引，将完成 Hombrew 安装。\n\n```bash\n$ ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n```\n\n紧接着，我们需要做一件事让通过 Homebrew 安装的程序的启动链接 (在 /usr/local/bin中）可以直接运行，无需将完整路径写出。通过以下命令将 /usr/local/bin 添加至 `$PATH` 环境变量中:\n\n```bash\n$ echo 'export PATH=\"/usr/local/bin:$PATH\"' \u003e\u003e ~/.bash_profile\n```\n\n`Cmd+T` 打开一个新的 `terminal` 标签页，运行以下命令，确保 `brew` 运行正常。\n\n```\n$ brew doctor // 验证 brew 是否可用\n```\n\n---\n`译注`：\n\n安装完成后，`Homebrew` 会将本地 `/usr/local` 初始化为 `git` 的工作树，并将目录所有者变更为当前所操作的用户，将来 `brew` 的相关操作不需要 `sudo` 。\n\n\n你已经感受到了使用 `Homebrew` 安装命令行程序的便利。那么接下来，我们将通过 `Homebrew Cask` 优雅、简单、快速的安装和管理 `OS X` 图形界面程序，比如 `Google Chrome` 和 `Dropbox`。\n\n### 安装命令行工具和图形界面工具\n\n安装命令行工具和图形界面工具是如此的简单直接，运行以下命令即可完成：\n\n```bash\n$ brew cask install google-chrome // 安装 Google 浏览器\n$ brew upgrade                    // 更新brew管理包并更新安装软件\n$ brew cleanup                    // 清除多余的下载文件\n```\n\n### 搜索\n\n如果你想查看 `cask` 上是否存在你需要的 `app`，可以到 `caskroom.io` 进行搜索。\n\n### 文件预览插件\n\n有些 插件 可以让 `Mac` 上的文件预览更有效，比如语法高亮、`markdown` 渲染、`json` 预览等等。+\n\n```bash\n$ brew cask install qlcolorcode        #  预览提供语法高亮\n$ brew cask install qlstephen\n$ brew cask install qlmarkdown         #  为 markdown 提供渲染\n$ brew cask install quicklook-json\n$ brew cask install qlprettypatch\n$ brew cask install quicklook-csv\n$ brew cask install betterzipql\n$ brew cask install webpquicklook      #  为预览 webp 图片格式提供支持\n$ brew cask install suspicious-package\n# Run qlmanage -r in the Terminal.(This will restart QuickLook, which reloads all plugins.)\n```\n\n### OS X 图形界面程序\n\n```bash\n$ brew cask install alfred\n$ brew cask install appcleaner\n$ brew cask install cheatsheet\n$ brew cask install dropbox\n$ brew cask install google-chrome\n$ brew cask install onepassword\n$ brew cask install sublime-text\n$ brew cask install totalfinder\n```\n\n-\n译注： 译者本人并不喜欢 `brew cask` 的安装方式，更倾向于到 `App Store` 或官方下载 `OS X` 图形界面程序。主要因为名字不好记忆、偶尔需要手动更新，另外当你使用 `Alfred` 或 `Spotlight` ，你将发现将程序安装在 `~/Application` 会很方便。\n\n\n## iTerm2\n\n作为一名开发者，我们常常花上很多时间在终端 上，如同武士的剑，一出手便知高低。所以让我们安装 `Mac` 上最强大的终端 [iTerm2](http://www.iterm2.com/) 吧！写码除虫，居家必备。\n\n在 `Finder` 中，将 iTerm 拖拽进入 Application 文件夹中。然后，你可以在 `Launchpad` 中启动 `iTerm2`。\n\n### 颜色和字体设置及安装配置\n\n- 在 `Keys` -\u003e `Hotkey` 中设置 `command` + `option` + `i` 快速显示和隐藏 `iTerm2` 。\n- 在 `Profiles` -\u003e `Default` -\u003e `Check silence bell`  使 iterm2 铃声不响\n- 在 `Profiles` -\u003e `Default` -\u003e `Colors` -\u003e `Load Presets` 将其导入，作为默认颜色。\n- 在 `Profiles` -\u003e `Text` 改变游标（`cursor`）、文字和颜色，随个人喜好。\n\n\n[Solarized dark iterm colors](https://github.com/altercation/solarized) 终端主题颜色及 [Source Code Pro字体](https://github.com/adobe-fonts/source-code-pro)的下载安装配置\n\n```bash\n$ cd               //  回到用户主目录中\n$ mkdir iTerm2Conf //  创建文件夹放置文件\n$ cd iTerm2Conf    //  进入文件夹\n$ git clone https://github.com/altercation/solarized\n$ git clone https://github.com/adobe-fonts/source-code-pro\n```\n\n### ZSH\n\n切换 `zsh` 作为第一 `shell`。\n\n```bash\n# 查看系统中的 shells\n$ cat /etc/shells\n# 切换默认 bash 到 zsh\n$ sudo chsh -s /bin/zsh \n```\n\n我们将安装 `zsh` ，其拓展功能和主题将由 `oh-my-zsh` 提供。其中`Env.sh` 文件用于维护别名（`aliases`），输出（`exports`）和路径改变（`path changes`）等等，以免影响 `~/.zshrc`。\n\n\n使用 `Homebrew` 完成 `zsh` 和 `zsh completions` （自动补全）的安装\n\n```bash\n$   brew install zsh zsh-completions\n```\n安装 `oh-my-zsh` 让 `zsh` 获得拓展功能和主题\n\n```bash\n$ curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh\n```\n\n用文本编辑器或 `vim` 打开 `.zshrc` 进行以下编辑:\n\n```bash\n# iterm2 终端colors主题\nZSH_THEME=pygmalion\nalias zshconfig=\"vi ~/.zshrc\"\nalias envconfig=\"vi ~/Projects/config/env.sh\"\nplugins=(git colored-man colorize github jira vagrant virtualenv pip python brew osx zsh-syntax-highlighting)\n```   \n\n用文本编辑器或 vi 打开 ~/Projects/config/env.sh 进行以下编辑:\n\n```bash\n#!/bin/zsh\n\n# PATH\nexport PATH=\"/usr/local/share/python:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin\"\nexport EDITOR='vi -w'\n# export PYTHONPATH=$PYTHONPATH\n# export MANPATH=\"/usr/local/man:$MANPATH\"\n\n# Virtual Environment\nexport WORKON_HOME=$HOME/.virtualenvs\nexport PROJECT_HOME=$HOME/Projects\nsource /usr/local/bin/virtualenvwrapper.sh\n\n# Owner\nexport USER_NAME=\"YOUR NAME\"\neval \"$(rbenv init -)\"\n\n# FileSearch\nfunction f() { find . -iname \"*$1*\" ${@:2} }\nfunction r() { grep \"$1\" ${@:2} -R . }\n\n#mkdir and cd\nfunction mkcd() { mkdir -p \"$@\" \u0026\u0026 cd \"$_\"; }\n\n# Aliases\nalias cppcompile='c++ -std=c++11 -stdlib=libc++'\n```\n\n\n## MySql\n\n## Node.js\n\n\n## 必不可少提高效率的软件介绍\n\n### alfred\n\n### Karabiner-Elements 键位定制神器\n\n系统全局的键位定制 [地址](https://github.com/wwwjfy/Karabiner-Elements)\n\n### 播放器\n\n[iina](https://github.com/lhc70000/iina)\n\n### Tmux\n\n### Vim\n\n### Git\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsui66%2Fdotfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsui66%2Fdotfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsui66%2Fdotfile/lists"}