blog icon indicating copy to clipboard operation
blog copied to clipboard

Mac整理的工具集锦

Open jiangtao opened this issue 6 years ago • 0 comments

本人使用Mac整理的一些工具, 由于问的人比较多整理成文档和脚本,方便大家使用。由于本人是工程师, 整理成脚本方便自己。 脚本地址 。下面整理一些较为常用和实用的工具。

开发者

懒人快捷装机子脚本

curl https://raw.githubusercontent.com/jiangtao/mydotfiles/master/install/boostrap.sh | bash

懒人脚本功能列表

homebrew安装

if test ! $(which brew); then
  echo "Installing homebrew..."
  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

# modify brew mirror to http://mirrors.ustc.edu.cn/
cd "$(brew --repo)" && git remote set-url origin https://lug.ustc.edu.cn/wiki/mirrors/help/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" && git remote set-url origin https://lug.ustc.edu.cn/wiki/mirrors/help/homebrew-core.git
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles

brew update

快捷命令

  • ripgrep  快捷查找命令, 简写rg, 同类产品: ag 
  • git  git命令 
  • vim  快捷编辑器 
  • autojump 快捷跳转,记忆跳转目录 
  • tree linux tree 
  • nginx 本地nginx 
  • wget linux wget 
  • gifsicle gif工具 
  • mkcert 创建https证书  
  • bat 统计行数 
  • fd 更好的查找命令 
  • timothyye/tap/ydict 命令行里面的有道词典 

使用brew安装快捷命令

# install tools
tools=(
  ripgrep 
  git 
  vim 
  autojump 
  tree
  nginx
  wget
  gifsicle # gif tools for unix
  mkcert # mkcert for localhost 
  bat # cat with line number
  fd # better find command
  timothyye/tap/ydict # youdao dict
)

brew install ${tools[@]}

命令行(terminal)辅助工具

  • zsh  命令行美化工具 
  • suggestion 命令行输入提醒 

安装zsh和suggestion

# oh my zsh 
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

# add suggestion plugin
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

# add zsh plugins
echo "plugins=(git zsh-autosuggestions)" >> $HOME/.zshrc

命令行应用安装工具 (brew cask)

可以通过命令行安装一些常用的工具。 

brew install caskroom/cask/brew-cask

常见的应用工具安装

apps=(
  google-chrome-canary
  firefox
  helm
  youdaonote
  
  ## dev tools
  sourcetree
  imageoptim
  beyond-compare
  
  # webstorm
  # vmware-fusion
  
  ## my tools
  qqmusic #qq music# 
  kindle #kindle for mac#
  wewechat # wechat for electron #
  omnigraffle
)

# Install apps to /Applications

echo "installing apps..."
brew cask install --appdir="/Applications" ${apps[@]}

开发推荐工具

  • TabNine vscode 智能辅助开发插件 

辅助工具

  • xmind zen 脑图工具 
  • soucetree  git GUI工具 
  • axure 原型图工具 
  • draw.io 画UML BPMN工具 

Mac产品下载

通常情况下, 如果经济能力允许建议买正版的软件,比如webstorm, omini系列工具等。 
如果着急可以在 Mac软件 下载。

jiangtao avatar Oct 30 '19 14:10 jiangtao