File tree 1 file changed +4
-6
lines changed
book/A-git-in-other-environments/sections
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,15 @@ zstyle ':vcs_info:git:*' formats '%b'
34
34
----
35
35
36
36
当你的命令行位于一个 Git 仓库目录时,在任何时候,都可以在命令行窗口右侧显示当前分支。
37
- (当然也可以在左侧显示,只需把上面 PROMPT 的注释去掉即可。)
37
+ (当然也可以在左侧显示,只需把上面 ` PROMPT` 的注释去掉即可。)
38
38
它看起来像这样:
39
39
40
40
.自定义 `zsh` 提示符.
41
41
image::images/zsh-prompt.png[自定义 `zsh` 提示符.]
42
42
43
- 关于 vcs_info 的更多信息,可参见 `zshcontrib(1)` 手册页面中对应的文档,或访问
44
- http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#Version-Control-Information[] 在线浏览。
43
+ 关于 `vcs_info` 的更多信息,可参见 `zshcontrib(1)` 手册页面中对应的文档,或访问 http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#Version-Control-Information[] 在线浏览。
45
44
46
- 比起 vcs_info 而言,你可能更偏好提供了 Git 的命令提示符定制脚本 `git-prompt.sh` 。
47
- 更多信息见 https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh[] 。
45
+ 比起 `vcs_info` 而言,你可能更偏好提供了 Git 的命令提示符定制脚本 `git-prompt.sh` ;更多信息见 https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh[]。
48
46
`git-prompt.sh` 同时兼容 Bash 和 Zsh。
49
47
50
48
Zsh 本身已足够强大,但还有一些专门为它打造的完整框架,使它更加完善。
@@ -54,4 +52,4 @@ oh-my-zsh 的扩展系统包含强大的 Git Tab 补全功能,且许多提示
54
52
55
53
[[oh_my_zsh_git]]
56
54
.一个 oh-my-zsh 主题的示例.
57
- image::images/zsh-oh-my.png[一个 oh-my-zsh 主题的示例. ]
55
+ image::images/zsh-oh-my.png[一个 oh-my-zsh 主题的示例]
You can’t perform that action at this time.
0 commit comments