前言
一年一度的 Mac Software 整理如期而至,本次是因为新入手了 Mac mini。谁叫这个价格实在是太香了。
去年的见:2024-08-mac-software
基础工具安装
安装 Homebrew
Homebrew 是 Mac 上非常强大的包管理工具,可以方便地安装和管理各种软件。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
安装 Ohmyzsh
sh -c "$(curl -fsSL https://install.ohmyz.sh/)"
|
安装 Command
brew install zsh brew install autojump brew install zsh-autosuggestions
|
如果是用 brew 安装 zsh-autosuggestions,需要在 .zshrc
在中设置
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
配置 Mackup
Mackup 是一个非常实用的工具,可以帮助你备份和同步 Mac 上各种应用程序的配置文件。通过将配置文件存储在云端(如 iCloud、Dropbox 等),你可以在多台设备间保持一致的应用设置。
安装 mackup
创建 Mackup 配置文件:
在配置文件中指定存储引擎(这里使用 iCloud):
[storage] engine = icloud
|
Mackup 常用命令
mackup backup mackup restore mackup list mackup uninstall
|
完成配置后,运行以下命令进行数据恢复:
Brew 安装 Software
brew tap buo/cask-upgrade
brew install --cask microsoft-edge brew install --cask microsoft-excel brew install --cask microsoft-powerpoint brew install --cask microsoft-word brew install --cask typora brew install --cask obsidian brew install --cask xmind brew install --cask ticktick
brew install --cask wechat brew install --cask dingtalk brew install --cask feishu brew install --cask telegram
brew install --cask brave-browser
brew install xcode
brew install --cask sublime-text brew install --cask cursor brew install --cask iterm2 brew install --cask trae
brew install --cask github brew install --cask docker
brew install --cask apifox brew install --cask charles brew install --cask raycast brew install --cask bitwarden
brew install --cask handbrake brew install --cask downie brew install --cask tencent-video brew install --cask youku brew install --cask qqlive brew install --cask tinymediamanager
brew install --cask neteasemusic
brew install --cask shottr brew install --cask optimage brew install --cask piclist
brew install --cask drawio
brew install --cask betterdisplay brew install --cask keka brew install --cask balenaetcher brew install --cask beyond-compare
brew install --cask baidunetdisk
brew install --cask cherry-studio
brew install --cask parallels brew install --cask calibre brew install --cask thunder brew install --cask basictex brew install --cask wetype brew install --cask jordanbaird-ice
|
手动安装 Software
A Better Finder Attributes 7 App Cleaner & Uninstaller Cubox Parallels Desktop photoSweeper Retrobatch Stash Texifier 夸克网盘 Follow imFile InjectGUI
|
安装 Git
安装 Node
安装 Python
安装 Pyenv
使用 Homebrew 安装 pyenv
:
配置 Shell 环境
将 pyenv
添加到你的 Shell 配置文件(例如 .zshrc
或 .bashrc
)中:
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init --path)"\nfi' >> ~/.zshrc
|
然后重新加载配置文件:
使用 Pyenv 安装和管理 Python 版本
运行以下命令查看可以安装的 Python 版本:
安装指定版本的 Python
例如,安装 Python 3.10.9:
设置全局或局部 Python 版本
配置 Python 虚拟环境
为了隔离项目依赖,建议结合 pyenv-virtualenv
使用虚拟环境。
安装 Pyenv-virtualenv
brew install pyenv-virtualenv
|
将其添加到 Shell 配置文件:
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc source ~/.zshrc
|
创建虚拟环境
例如,基于 Python 3.13.2 创建一个虚拟环境:
pyenv virtualenv 3.13.2 myenv
|
激活虚拟环境:
退出虚拟环境:
安装 Latex
如果找不到 tlmgr tlmgr: command not found
,需要设置
export PATH="/usr/local/texlive/2025basic/bin/universal-darwin:$PATH"
|
如果运行提示 (not verified: gpg unavailable)
,需要安装
sudo tlmgr --repository http://www.preining.info/tlgpg/ install tlgpg
|
如果运行安装包的时候速度慢的话推荐使用 清华的CTAN 镜像。
sudo tlmgr option repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
|
按照依赖的插件
sudo tlmgr update --self sudo tlmgr install ctex sudo tlmgr install enumitem sudo tlmgr install environ sudo tlmgr install ifmtarg sudo tlmgr install sourcesanspro sudo tlmgr install tcolorbox sudo tlmgr install tikzfill sudo tlmgr install xifthen sudo tlmgr install xstring sudo tlmgr install roboto sudo tlmgr install fontawesome5
|
安装字体
brew install font-sf-pro brew install font-sf-compact brew install font-sf-mono brew install font-new-york
brew install font-open-sans brew install font-noto-sans brew install font-roboto
brew install --cask font-lxgw-neoxihei brew install --cask font-lxgw-neozhisong brew install --cask font-lxgw-wenkai brew install --cask font-lxgw-wenkai-gb brew install --cask font-lxgw-wenkai-lite brew install --cask font-lxgw-wenkai-mono-tc brew install --cask font-lxgw-wenkai-tc brew install --cask font-lxgw-zhenkai
brew install font-sf-compact brew install font-sf-mono brew install font-sf-pro brew install font-fontawesome brew install font-lxgw-neoxihei brew install font-lxgw-neozhisong brew install font-lxgw-wenkai brew install font-lxgw-wenkai-gb brew install font-lxgw-wenkai-lite brew install font-lxgw-wenkai-mono-tc brew install font-lxgw-zhenkai brew install font-new-york brew install font-noto-sans brew install font-open-sans brew install font-roboto
|
The Why·Liam·Blog by WhyLiam is licensed under a Creative Commons BY-NC-ND 4.0 International License.
由WhyLiam创作并维护的Why·Liam·Blog采用创作共用保留署名-非商业-禁止演绎4.0国际许可证。
本文首发于Why·Liam·Blog (https://blog.naaln.com),版权所有,侵权必究。
本文永久链接:https://blog.naaln.com/2025/03/mac-software/