MacOS 终端显示 Git 分支的名称

前提:MacOS 默认终端是不显示 Git 分支的名称的,个人感觉难受,样式也不好看!就找到了 oh-my-zsh
终端输入以下指令就OK了
bash 复制代码
sh -c "$(curl -fsSL https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"
注意⚠️!!!
如果之前已经安装了 Volta 、node、nvm 等环境,环境变量需要变更,否则将会报错,具体参考:

macOS 安装 oh-my-zsh 后 node 报错 command not found : node

相关推荐
摆烂且佛系15 小时前
十分钟了解Git Cherry-Pick
git
星渊澈16 小时前
从github上git clone 比较慢,如何解决。。
git·github
aosky18 小时前
手机远程畅玩OpenAI Codex
macos·智能手机·cocoa
魔都吴所谓19 小时前
【Ubuntu】离线环境下Git LFS(deb包)安装与验证完整教程
linux·git·ubuntu
REDcker19 小时前
Git worktree:多工作区并行开发与实践
git·worktree
lifewange19 小时前
Git版本管理
大数据·git·elasticsearch
尘世壹俗人19 小时前
idea提交git版本由于中文文件名卡死不动
java·git·intellij-idea
A懿轩A21 小时前
【2026 最新】Python 下载与安装:在 macOS 下使用 Homebrew 和 pyenv 完美管理多版本 Python
python·macos·mac
IKaros_α‌21 小时前
mac上安装openclaw从入门到删除
macos
x-cmd21 小时前
macOS 内存模型深度解析 | x free 设计哲学
linux·macos·内存·策略模式·free·x-cmd