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

相关推荐
淘矿人1 天前
从0到1:用Claude启动你的第一个项目
开发语言·人工智能·git·python·github·php·pygame
lpfasd1231 天前
Git/Gitee/GitHub 3 个安全凭证详解
git·gitee·github
李日灐1 天前
< 7 > Linux 开发工具:git 版本控制器 和 cgdb/gdb 调试器
linux·运维·服务器·开发语言·git·调试器·gdb/cgdb
CyL_Cly1 天前
localsend安卓手机下载 支持win/mac/ubuntu
android·macos·智能手机
Gust of wind1 天前
idea结合git和Gitee的初步使用
git·gitee·intellij-idea
夜七少eleanor1 天前
【Git】2026全图文详解安装教程
git
海边的Kurisu1 天前
从零开始的Git生活 | 刚实习同学的噩梦 And 参与开源不可缺的一环
git·生活
A懿轩A1 天前
Thaw:让 macOS 菜单栏重获新生的免费全能管理工具,适配 macOS Tache 26.4.1 系统,Ice平替活跃版,解决 Ice 常见报错问题
macos
不老刘1 天前
Git Cherry-Pick:微前端架构下的“精准医疗”与最佳实践
前端·git
爬楼的猪1 天前
Git Folder Dashboard
git