新 Mac 的一些必要配置

windows的cmd命令行需要以管理员身份运行。mac里面各种各样的命令,很多运行不了,就是没有【以管理员身份运行】咋弄?
命令前 加 sudo。

 

 

 

配置密码,指纹

 

登陆 Apple ID,同步下载必要软件

 

Xcode, Number, Page, Keynote, office 套件(公司有正版)

 

FQ

 

  1. 可以打开公司阿里郎的 ‘网络加速’ 功能
  1. 配置 host 以便 clone github 内容:
    140.82.114.4 github.com
    199.232.5.194 github.global.ssl.fastly.net
  1. 添加 github 静态文件服务器到 PAC:raw.githubusercontent.com

 

下载 Chrome 浏览器,登陆账号,同步书签和插件

 

安装文件同步工具(公司里只能用 TeamFile)

 

安装 iTerm2

 

iTerm2 - macOS Terminal Replacement
https://iterm2.com/downloads/stable/latest

 

安装 OhMyZSH

 

Oh My Zsh - a delightful & open source framework for Zsh

 

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

 

主题:Themes · ohmyzsh/ohmyzsh Wiki · GitHub
plugin:https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins

 

安装 HomeBrew

 

The Missing Package Manager for macOS (or Linux) — Homebrew

 

/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”

 

安装 cli 工具

 

wget,node,ag(Silver Searcher) brew install the_silver_searcher

 

配置 vim

 

  1. 安装 Vundle:https://github.com/VundleVim/Vundle.vim
  1. 使用自己的 vimrc:my vimrc, use Vundle ( https://github.com/VundleVim/Vundle.vim ) · GitHub
  1. 安装 powerline 字体:GitHub - powerline/fonts: Patched fonts for Powerline users.

 

Node 环境配置

 

  1. 配置 c 语言编译环境(防止 npm I 时出现:gyp: No Xcode or CLT version detected!

 

sudo rm -rf $(xcode-select -print-path)
xcode-select --install

 

  1. 修改 npm 源,使用 alibaba-inc 的源:
    npm config set registry https://registry.npm.alibaba-inc.com

 

配置 Git

 

  1. 设置 alias ,提高输入速度,编辑 ~/.gitconfig

 

[alias]
  co = checkout
  ci = commit
  br = branch
  st = status
  lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

 

其他常用软件

 

Alfred

 

常用 workflow:

 

  1. GitHub - wensonsmith/YoudaoTranslate: Alfred Youdao Translate Workflow
  1. vscode
漫思
原文地址:https://www.cnblogs.com/sexintercourse/p/15235620.html