2

我的 Mac 开发环境配置

 2 years ago
source link: https://miopas.github.io//2019/02/27/mac-env/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

又到了换电脑的季节。为了给第三次配置 Mac 环境省点事,梳理一下所有要配置/安装的东西。

1. 系统设置

系统版本:macOS High Sierra 10.13.6

  • 设置英文系统: Language & Region
  • 映射 Caps Lock 到 Control:Keyboard → Modifier Keys
  • 修改输入法切换快捷键为 command + control + space: Keyboard → Shortcuts → Input Source
  • Trackpad
    • Point & Click: Choose Tap to click
    • Scroll & Zoom: Choose All
    • More Gestures: mac-setting-gestures.png
  • My Application Shortcut
    • 打开 Alfred: command + shift(↑) + space
    • 打开 Spotlight: command + space
    • Wechat 截图: command + control(^) + A
  • iTerm2 替代原生终端 download

  • Alfred 搜索神器 download

  • passwordsafeSWT 密码管理器 download

  • Lantern 科学上网 download

  • IINA 个人比较喜欢的一个播放器 download

    • Chrome
    • Wechat
    • NeteaseMusic
    • 搜狗输入法

3. iTerm2 配置

推荐一下这个 Git 仓库,集合了各种折腾 Shell 的库:awesome-shell

3.1 Shell 配色

忘了之前用的是啥了,这次用的是这个:Flat-UI-Terminal-Theme

3.2 Git 插件

一直用的这个:(bash-git-prompt)[https://github.com/magicmonty/bash-git-prompt] 可以用 brew 安装,安装完记得改 .bash_profile 配置。

4. vim 配置

vim 的配置在 gist 上存了,在这里

4.1, Vundle

在这之前需要先安装 Vundle

先从 Git 上获取 Vundle:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

.vimrc 替换上面的内容后,打开 .vimrc,然后运行 :PluginInstall 开始安装各种插件。

4.2 配色

.vimrc 中的这两个插件是和 vim 配色相关的:

Plugin 'altercation/vim-colors-solarized'
Plugin 'jnurmine/Zenburn'

其实这是俩不同的配色插件,后面一个会覆盖前面一个的效果。最近一直用 zenburn,暂时还没有厌倦。不折腾了。

5. 开发环境

  • Homebrew
  • Python
  • Zsh && oh-my-zsh

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK