简 述: 每次重装 MacOS
后,自用安装软件清单。
常用软件
xmuli/xmuliPic pic xxxxxxxxxxxxxxx // 不显示 2021/ https://cdn.jsdelivr.net/gh/xmuli/xmuliPic@pic <img src="$url" width="50%"/> http://127.0.0.1:1087
istat menus 6.4.0 软件激活密钥 邮箱:982092332@qq.com SN: GAWAE-FCWQ3-P8NYB-C7GF7-NEDRT-Q5DTB-MFZG6-6NEQC-CRMUD-8MZ2K-66SRB-SU8EW-EDLZ9-TGH3S-8SGA
• 简体中文(聪聪):<tg://setlanguage?lang=zhcncc> • 简体中文(@zh_CN 版):<tg://setlanguage?lang=classic-zh-cn> • 简体中文(langCN):<tg://setlanguage?lang=zhlangcn> • 简体中文(瓜体):<tg://setlanguage?lang=duang-zh-cn> • 繁体中文(香港):<tg://setlanguage?lang=zh-hant-raw> • 繁体中文(台湾):<tg://setlanguage?lang=taiwan>
- [win:]
C:\Winows\System32\drivers\etc\hosts
- [Mac:]
/etc/hosts
- [Linux:]
/etc/hosts
140.82.114.4 github.com 140.82.114.3 gist.github.com 185.199.108.153 assets-cdn.github.com 185.199.109.153 assets-cdn.github.com 185.199.110.153 assets-cdn.github.com 185.199.111.153 assets-cdn.github.com 199.232.68.133 raw.githubusercontent.com 199.232.68.133 gist.githubusercontent.com 199.232.68.133 cloud.githubusercontent.com 199.232.68.133 camo.githubusercontent.com 199.232.68.133 avatars0.githubusercontent.com 199.232.68.133 avatars1.githubusercontent.com 199.232.68.133 avatars2.githubusercontent.com 199.232.68.133 avatars3.githubusercontent.com 199.232.68.133 avatars4.githubusercontent.com 199.232.68.133 avatars5.githubusercontent.com 199.232.68.133 avatars6.githubusercontent.com 199.232.68.133 avatars7.githubusercontent.com 199.232.68.133 avatars8.githubusercontent.com
配置环境
执行: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
;
如果安装太慢,直接使用现成的国内镜像源,执行下面的命令,选1(亲测速度最快),且自动换成国内的源
执行 /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
常用软件:
brew install zsh git vim screenfetch curl wget gitg tree brew install --cask visual-studio-code
执行: 如下命令,若是失败,直接下载和运行此可执行文件
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc vim ~/.zshrc chsh -s /bin/zsh chsh -s /bin/bash PATH="$PATH:./node_modules/.bin" export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles export GPG_TTY=$(tty) alias tree='tree -CN' set number
brew install git git config --global user.name "xmuli" git config --global user.email "xmulitech@gmail.com" ssh-keygen -t rsa -C "xmulitech@gmail.com" cat ~/.ssh/id_rsa.pub git config --global core.quotepath false git config --global --list
git config --global http.proxy "http://127.0.0.1:1087" git config --global https.proxy "http://127.0.0.1:1087" git config --global http.proxy "socks5://127.0.0.1:1080" git config --global https.proxy "socks5://127.0.0.1:1080" git config --global --unset http.proxy git config --global --unset https.proxy 修改 `~/.ssh/config` 文件(不存在则新建): Host github.com HostName github.com User git
下载 one.vim 文件 mkdir ~/.vim/colors/ sudo cp ./one.vim ~/.vim/colors/ vim ~/.vimrc colorscheme one set background=dark set backspace=2 ----------------------------安装后提示---------------------------- You may want to add this to your PATH. ruby is keg-only, which means it was not symlinked into /usr/local, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble. If you need to have ruby first in your PATH, run: echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> /Users/xmuli/.bash_profile For compilers to find ruby you may need to set: export LDFLAGS="-L/usr/local/opt/ruby/lib" export CPPFLAGS="-I/usr/local/opt/ruby/include"
nvm 常用命令 ● nvm install stable 安装最新稳定版 node ● nvm install <version> 安装指定版本,如:安装v4.4.0,nvm install v4.4.0 ● nvm uninstall <version> 删除已安装的指定版本,语法与install类似 ● nvm use <version> 切换使用指定的版本node ● nvm ls 列出所有安装的版本 ● nvm alias default <version> 如: nvm alias default v11.1.0 ● nvm ls-remote ● nvm current ----------------------------安装后提示---------------------------- nvm via Homebrew is unsupported by them and you should check any problems against the standard nvm install method prior to reporting. You should create NVM's working directory if it doesn't exist: mkdir ~/.nvm Add the following to /Users/xmuli/.bash_profile or your desired shell configuration file: export NVM_DIR="$HOME/.nvm" [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" You can set $NVM_DIR to any location, but leaving it unchanged from /usr/local/opt/nvm will destroy any nvm-installed Node installations upon upgrade/reinstall. Type `nvm help` for further information.
执行:npm install -g cnpm --registry=https://registry.npm.taobao.org
;(PS: 不加 sudo
运行 )
前提: 前面已经安装了 node.js + 替换淘宝源 cnpm。执行: npm install -g hexo-cli
;(PS: 不加 sudo
运行 )
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles export PATH="/usr/local/bin:$PATH" export PATH="/usr/local/sbin:$PATH" export NVM_DIR="$HOME/.nvm" [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm"
原文链接:https://blog.csdn.net/qq_33154343/article/details/114423247?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165918469516780357295807%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=165918469516780357295807&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-15-114423247-null-null.nonecase&utm_term=%E9%A6%99%E6%B8%AFcdn
原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/3838