macOS工作环境

来源:互联网 发布:fastcopy 网络拷贝 编辑:程序博客网 时间:2024/06/16 16:40

前几天把电脑玩崩了,无奈之下只能重新装系统,然后接下来装各种软件啥的花了我很多时间,所以整理一份大体流程备用,顺便造福小白。

环境搭建

  1. replace bash with zsh

    chsh -s /bin/zsh

  2. install Oh My ZSH!

    sh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”

  3. replace terminal with iTerm 2

  4. install Homebrew

    ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

  5. install wget

    brew install wget

  6. install Homebrew Cask

    brew install caskroom/cask/brew-cask

  7. install node

    brew install node

  8. install n module

    npm install -g n

  9. install less

    npm install -g less

iTerm配置

  1. install pip

    sudo easy_install pip

  2. install Powerline

    pip install powerline-status —user

  3. 下载、安装字体库 https://github.com/powerline/fonts

    • 将工程下载后进入install.sh文件所在目录

    • 执行指令安装字体库

      ./install.sh

  4. 设置字体

    setting - profiles - text - font - 20pt Meslo S DZ Regular for Powerline

  5. 配色方案 (可选)

    1. 下载配色方案 https://github.com/altercation/solarized

    2. 双击 Solarized Dark.itermcolors 和 Solarized Light.itermcolors 导入配色方案

    3. setting - profiles - colors 选择方案

  6. 使用 angoster 主题

    1. 下载 angoster https://github.com/fcamblor/oh-my-zsh-agnoster-fcamblor

    2. 运行 install文件,主题将安装到 ~/.oh-my-zsh/themes 目录下

    3. 进入 ~/.zshrc 打开 .zshrc 文件,将 ZSH_THEME 后面的字段改为 agnoster (ZSH_THEME=”agnoster”)

  7. 增加指令高亮效果 : zsh-syntax-highlighting

    1. 命令行进入 .zshrc 目录

    2. git clone git://github.com/zsh-users/zsh-syntax-highlighting.git

    3. 打开 .zshrc 文件,在最后添加以下内容

      source XXX/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
      XXX 代表 .zshrc 所在目录

    4. cd ~/.oh-my-zsh/custom/plugins

    5. 再次打开 .zshrc 文件,在最后添加以下内容

      plugins=(zsh-syntax-highlighting)

软件需求

  • Keka https://github.com/aonez/Keka

    brew cask install keka

  • Lantern https://github.com/getlantern/lantern

    brew cask install lantern

  • IINA https://github.com/lhc70000/iina

    brew cask install iina

  • Chrome https://www.google.com/chrome/browser/desktop/index.html

    brew cask install google-chrome

  • Typora https://www.typora.io/

    brew cask install typora

  • Dash https://kapeli.com/dash

  • WebStorm http://www.jetbrains.com/webstorm/

  • Sublime http://www.sublimetext.com/

  • Sip http://sipapp.io/

  • Firefox http://www.firefox.com.cn/

  • Mark Man http://www.getmarkman.com/

  • MindNode https://mindnode.com/

  • SiteSucker http://ricks-apps.com/osx/sitesucker/index.html

  • µTorrent http://www.utorrent.com/

  • PDF Expert https://www.pdfexpert.cn/?variant=zh-cn

  • AppCleaner https://appcleaner.en.softonic.com/mac

  • duet https://www.duetdisplay.com/

部分内容非原创,整理只为下次查找方便,侵删。