美文网首页
Mac 下码农软件推荐

Mac 下码农软件推荐

作者: acc8226 | 来源:发表于2020-06-30 14:05 被阅读0次

软件安装器 Homebrew

使用 Homebrew 安装 Apple(或您的 Linux 系统)没有预装但你需要的东西

Homebrew 安装

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

Homebrew 源替换

git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git

brew update

还原 homebrew 源

git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git

git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git

git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask.git

brew update

Homebrew-bottles 镜像使用帮助

注:该镜像是 Homebrew 二进制预编译包的镜像。本镜像站同时提供 Homebrew 的 formula 索引的镜像(即 brew update 时所更新内容),请参考 Homebrew 镜像使用帮助

临时替换

export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles

长期替换

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile

brew 的常用命令
搜索

$ brew search tomcat

安装软件

$ brew install wget
$ brew install nginx
$ brew install redis

Homebrew 镜像使用帮助 https://mirror.tuna.tsinghua.edu.cn/help/homebrew/

Alfred

Alfred 是 Mac 系统上一款专注于效率提升的著名应用,它能帮你快速打开网页、快速进行自定义搜索、查看剪贴板历史、快速查询单词等等。Alfred 提供的功能虽然很多,但目的只有一个 —— 那就是减少我们工作中的一些重复动作,提升我们的工作效率。

这里仅仅做简单介绍.

Alfred 如何设置默认搜索引擎(以百度搜索为例)

添加一下规则:https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=baidu&wd=

iTerm 2 - mac 下终端的替代品

该工具结合 Oh My Zsh 会有极度舒适的终端体验

mac下 Oh my zsh + iTerm2初体验 - 简书
https://www.jianshu.com/p/b5e7fa6ad495

其他事项

升级了macOS Sierra 后,command line tools 报错的问题的处理

xcrun: error: invalid active developer path
 (/Library/Developer/CommandLineTools), missing xcrun at:
 /Library/Developer/CommandLineTools/usr/bin/xcrun

敲入 xcode-select --install 终端输入完美解决

mac 下个人 bash_profile 留存备份

~/.bash_profile下记录我的配置

# java
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
# 先定义, 最终再导出也是可以的
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home
export JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH

# gradle
export PATH=${PATH}:/Users/ale/opt/gradle/gradle-4.10.1/bin

# maven
export M2_HOME=/Users/ale/exec/apache-maven-3.6.1
export PATH=$PATH:$M2_HOME/bin

# HOMEBREW
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles

该文章持续更新中...

相关文章

网友评论

      本文标题:Mac 下码农软件推荐

      本文链接:https://www.haomeiwen.com/subject/dcahvqtx.html