技术栈

MacOS 终端显示 Git 分支的名称

Greenhand_BN2023-12-23 3:24
前提: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

上一篇:Shell脚本应用(二)
下一篇:Leetcode 55 跳跃游戏
相关推荐
鄃鳕
2 小时前
Git , 本地落后远端
git
Yusei_0523
7 小时前
迅速掌握Git通用指令
大数据·git·elasticsearch
qq_37757277
16 小时前
git commit - revert + reset + checkout + reorder
git
2301_76723322
1 天前
Git使用和理解上的一些问题
git
共享家9527
1 天前
linux-数据链路层
linux·网络·macos
nyf_unknown
1 天前
(vue)将文件夹打成tar包, Git Bash(推荐)具体使用
vue.js·git·bash
兔老大RabbitMQ
1 天前
Git Revert 特定文件/路径的方法
git
CZIDC
1 天前
MacOS字体看起来比在 Windows 上更好?
macos
Cosmoshhhyyy
2 天前
linux远程部署dify和mac本地部署dify
linux·运维·macos
行星008
2 天前
mac 通过homebrew 安装和使用nvm
macos·npm·node.js
热门推荐
01UV安装并设置国内源02【2025.08.06最新版】Android Studio下载、安装及配置记录(自动下载sdk)03Qwen3-Coder 快速上手教程 | Qwen Code + Claude Code04KGG转MP3工具|非KGM文件|解密音频052025最新国内服务器可用docker源仓库地址大全(2025年8月更新)06蜘蛛磁力 搜索引擎大全,如何使用蜘蛛磁力查找磁力链接07TRAE 规则(Rules)配置指南:个人习惯、团队规范与最佳实践08NVIDIA显卡驱动、CUDA、cuDNN 和 TensorRT 版本匹配指南09阿里开源首个图像生成基础模型——Qwen-Image本地部署教程,超强中文渲染能力刷新SOTA!10TRAE Rules 实践:为项目配置 6A 工作流