Open hhstore opened 2 years ago
so, 写个完整版的Mac配置教程, 送给所有Mac新用户.
免费软件
付费软件
免费软件
付费软件
first:
xcode-select --install
xcode-select -p
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install git
brew install wget
brew install fish
# 进入用户目录
cd ~
# 安装
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
# zsh theme:
wget https://raw.githubusercontent.com/skylerlee/zeta-zsh-theme/master/zeta.zsh-theme
#
cp zeta.zsh-theme ~/.oh-my-zsh/themes
# vim ~/.zshrc
ZSH_THEME="zeta"
# 自带:
ZSH_THEME="candy"
# 登出账号
exit
xcode
Android studio : https://developer.android.com/studio
Pycharm
webStorm
搭建 python 开发环境:
生成新的 ssh-key: https://github.com/hhstore/blog/issues/74
ssh-keygen -t ed25519 -C "your_email@example.com"
安装 go-task:
brew install go-task/tap/go-task
docker:
brew install fish
参考配置:
# Don't shorten the working directory in the prompt
set -g fish_prompt_pwd_dir_length 0
# Set my preferred cursor style:
function setcursors
set -g fish_cursor_default block
set -g fish_cursor_insert line
set -g fish_cursor_visual underscore
end
# Set my language
set -gx LANG de_DE.UTF-8
bugfix:
# 查看:
pmset -g custom
# 关闭:
sudo pmset -a powernap 0
- 显示隐藏文件夹:
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
- 多桌面-固定窗口顺序
系统偏好设置
,点击 调度中心
, 取消勾选 根据最近的使用情况自动重新排列空间
homebrew mirror:
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"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
nodejs NPM mirror:
npm config set registry https://registry.npmmirror.com
npm config get registry
python + pip mirror:
# 临时使用:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
# 更新:
pip install pip -U
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U
# 永久设置:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
注册码:
安装步骤:
arm m1 用户需注意,不支持安装 windows arm 系统,仅支持安装 linux arm 系统
1. 双击「VMware Fusion」打开安装程序,输入电脑密码,点击「好」,然后点击「同意」
2. 出现激活界面,将下面的许可证密钥复制粘贴到对应位置,然后点击「继续」
3. 输入电脑密码,点击「好」
4. 激活成功,尽情享用吧!
许可证密钥一:
ZF3R0-FHED2-M80TY-8QYGC-NPKYF
许可证密钥二:
YF390-0HF8P-M81RQ-2DXQE-M2UT6
许可证密钥三:
ZF71R-DMX85-08DQY-8YMNC-PPHV8
1
app 损坏修复:
sudo xattr -d com.apple.quarantine /Applications/Bartender\ 4.app/
sudo xattr -d com.apple.quarantine /Applications/PopClip.app/
sudo xattr -d com.apple.quarantine /Applications/Hazel.app/
related: