Mac软件推荐
最近下血本从Windows换到了Mac,所以特此写一篇文章来记录我下载了哪些好用软件,顺便分享给大家。
Homebrew
其实我第一个安装的软件是 Shadowrocket ,这个软件懂得都懂,不是必需品,但是有更好。Homebrew 推荐安装的时候就使用镜像,会有更好的体验,有了Homebrew,你就可以简单的安装 Git ,Maven 等工具了。
打开终端执行如下命令即可:
export HOMEBREW_INSTALL_FROM_API=1
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
/bin/bash -c "$(curl -fsSL https://github.com/Homebrew/install/raw/master/install.sh)"
test -r ~/.bash_profile && echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.bash_profile
test -r ~/.zprofile && echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
已经装好了想使用镜像的,可以直接执行下面命令:
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
for tap in core cask{,-fonts,-versions} command-not-found services; do
brew tap --custom-remote --force-auto-update "homebrew/${tap}" "https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-${tap}.git"
done
brew update
详细操作解析可以看下面两个链接:
mirrors.tuna.tsinghua.edu.cn/help/homebr…
Java
现在大部分人还是用 Java8 多一点,而 brew 不能直接安装 apple arm版本的 Java8 ,所以给大家推荐下面的网站:
Maven
大家可能发现 brew install maven ,之后 maven 使用的不是你刚才安装的 Java 版本,这里配置一下环境变量变量即可,如下:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
同样习惯用 ll 等命令的,也可以在环境变量里面设置:
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
Karabiner
Karabiner 是我强烈推荐的,相信很多从 Windows 转 Mac 的人都会发现原来买的键盘都是适用于 WIndows 的,换掉也觉得可惜,毕竟一个好的键盘也不便宜,这个时候 Karabiner 就帮了大忙了,它基本上可以完美的解决你的问题。
给大家推荐 Windows shortcuts on macoS 这个规则,
ke-complex-modifications.pqrs.org/?q= 这里面搜索即可
再给大家推荐一个可视化自定义规则的网站,很好用:
Alfred
Alfred 也是一个神器,原来喜欢用 EveryThing 搜索软件的一定不能错过它,它比他更强大,它还有一个特别好用的功能就是剪贴板历史,刚使用 Mac 的时候,大家一定很纳闷,为什么不能看剪贴板历史,这个软件可以简单的做到,不用过多语言介绍了,用过的都会说好。