在 Oh My Zsh 自定义提示中,白色背景的数字是多少?
In an Oh My Zsh customized prompt, what is the number with the white background?
我在 macOS 上使用 Oh My Zsh,在 Git 版本目录中工作时,我在提示中有三个不同的信息字段:
- 当前文件夹[蓝色背景]
- 本地分行(+ahead/-behind)[绿色背景],
- 远程分支 (+ahead/-behind) [蓝绿色背景]
它通常工作得很好,除了现在我有一个额外的部分,白色背景的部分:
我尝试 运行 git status
来理解“+9”可能意味着什么:
On branch bootstrap-adjustments
Your branch is up-to-date with 'origin/bootstrap-adjustments'.
nothing to commit, working tree clean
我也尝试查看 git-prompt
插件 source code,但找不到该部分。
有人知道“+9”是什么意思吗?
感谢推特上的A fellow Vimer:
+9 是存储库中的存储数。
运行 发现:git stash list
。
我在 macOS 上使用 Oh My Zsh,在 Git 版本目录中工作时,我在提示中有三个不同的信息字段:
- 当前文件夹[蓝色背景]
- 本地分行(+ahead/-behind)[绿色背景],
- 远程分支 (+ahead/-behind) [蓝绿色背景]
它通常工作得很好,除了现在我有一个额外的部分,白色背景的部分:
我尝试 运行 git status
来理解“+9”可能意味着什么:
On branch bootstrap-adjustments Your branch is up-to-date with 'origin/bootstrap-adjustments'. nothing to commit, working tree clean
我也尝试查看 git-prompt
插件 source code,但找不到该部分。
有人知道“+9”是什么意思吗?
感谢推特上的A fellow Vimer:
+9 是存储库中的存储数。
运行 发现:git stash list
。