Skip to content

Commit 884a73f

Browse files
committed
Zsh
1 parent 845c50c commit 884a73f

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

en/book/10-git-in-other-environments/chapter10.asc

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,21 @@ setopt prompt_subst
187187
export RPROMPT=$'$(__git_ps1 "%s")'
188188
----
189189

190-
This results in TODO
190+
This results in a display of the current branch on the right-hand side of the terminal window, whenever your shell is inside a Git repository. It looks a bit like <<zsh_git>>.
191+
192+
[[zsh_git]]
193+
.Customized `zsh` prompt.
194+
image::images/zsh-prompt.png[Customized `zsh` prompt.]
195+
196+
Zsh is powerful enough that there are entire frameworks dedicated to making it better.
197+
One of them is called "oh-my-zsh", and it can be found at https://github.com/robbyrussell/oh-my-zsh[].
198+
oh-my-zsh's plugin system comes with powerful git tab-completion, and it has a variety of prompt "themes", many of which display version-control data.
199+
<<oh_my_zsh_git>> is just one example of what can be done with this system.
200+
201+
[[oh_my_zsh_git]]
202+
.An example of an oh-my-zsh theme.
203+
image::images/zsh-oh-my.png[An example of an oh-my-zsh theme.]
191204

192-
TODO: oh-my-zsh, themes
193205

194206
=== Git in Powershell
195207

en/book/images/zsh-oh-my.png

3.83 KB
Loading

en/book/images/zsh-prompt.png

24.6 KB
Loading

0 commit comments

Comments
 (0)