Abner的博客

Mac优化

· 52 words · 1 minutes to read
Categories: 工具

全局设置代理

export ALL_PROXY=socks5://127.0.0.1:1086

git-ssh

git config --global user.name "xuchen"
git config --global user.email "abner510@126.com"

brew

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

或者 /bin/zsh -c “$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 选择1 中科大源

oh-my-zsh

curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh

zsh-autosuggestions 自动补全插件

  • 下载该插件到.oh-my-zsh的插件目录 git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
  • 编辑.zshrc: plugins=(git zsh-autosuggestions)
  • 重启命令行工具
  • 下载自动补全插件 http://mimosa-pudica.net/src/incr-0.2.zsh
  • 放到oh-my-zsh的插件库中 .oh-my-zsh/plugins/创建incr文件夹放到该文件夹中
  • .zshrc末尾添加:source ~/.oh-my-zsh/plugins/incr/incr*.zsh 重启命令行

Tags