mac电脑安装Zsh并启用

安装 Zsh

1. 安装 Zsh

新版mac系统会默认安装并使用zsh,如没用,需在终端中安装:

sh 复制代码
brew install zsh

2. 安装 Oh My Zsh

克隆Oh My Zsh到你的目录:

sh 复制代码
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

3. 复制 .zshrc 配置文件

sh 复制代码
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

4. 更改默认 Shell

sh 复制代码
chsh -s /bin/zsh

5. 设置别名

.zshrc中添加别名:

sh 复制代码
alias ll='ls -l'

6. 应用配置

每次修改.zshrc后,使更改生效:

sh 复制代码
source ~/.zshrc
相关推荐
寒水馨6 小时前
macOS下载、安装uv-0.12.0(附安装包uv-aarch64-apple-darwin.tar.gz)
python·macos·rust·项目管理·包管理器·astral·pip替代
寒水馨7 小时前
macOS下载、安装protobuf-v35.1(附安装包protoc-35.1-osx-universal_binary.zip)
macos·google·grpc·序列化·protobuf·protoc·数据交换
寒水馨7 小时前
macOS下载、安装ripgrep-15.2.0(附安装包ripgrep-15.2.0-aarch64-apple-darwin.tar.gz)
macos·正则表达式·rust·ripgrep·rg·命令行搜索·代码搜索
起司喵喵1 天前
Flutter-MacOS桌面OS系统|flutter.+window_manager客户端OS模板
flutter·macos·策略模式
代码对我眨眼睛1 天前
macOS Google Chrome 常用快捷键
前端·chrome·macos
啊真真真1 天前
macOS下libnfc ..写卡失败问题及解决方案
macos·策略模式
叶 落1 天前
Mac 通过 Miniconda 安装 Python
python·macos·conda·miniconda
it-电商达人2 天前
告别手动对齐!Mac播放器Popvee Player支持本地AI自动生成字幕
人工智能·macos
2501_916008892 天前
iOS IPA文件反编译与打包操作方法,拆包分析防护和加固打包
android·macos·ios·小程序·uni-app·cocoa·iphone
凯丨2 天前
2GB 内存跑 Gemma 4 26B 模型:TurboFieldfare Mac 本地部署实测(2026 最新)
macos