在日常换电脑时,可能会出现需要重新下载各类软件和工具。
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)
# 换国内源
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
# 安装wget
brew install wget
brew install zsh
/bin/bash -c “$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)”
brew install iterm2
https://developer.oracle.com/java/
推荐使用jdk 11及以上版本,dmg的安装包可以不用配置环境变量了。
https://www.jetbrains.com/idea/
https://maven.apache.org/
maven装好之后,需要在~/.bash_profile 中添加MAVEN_HOME 和PATH
export MAVEN_HOME="/Users/XXX/soft/apache-maven-3.8.6"
export PATH="$MAVEN_HOME/bin:$PATH"
装好maven之后,需要换一下国内源,配置本地repo路径
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
<localRepository>/Users/XXX/localRepo</localRepository>
<mirrors>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>
</mirrors>
</settings>
https://www.sublimetext.com/download_thanks?target=mac
个人非常推荐,用起来很方便,workflow自己开发一下也会让日常的工作变得很便捷。
https://alfredpowerpack.com/