Skip to content

Commit

Permalink
Add note on zsh prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterius committed Nov 20, 2023
1 parent 01a5603 commit c746e16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/git/git-9-extra-material.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ variable `PS1`. You can type `echo $PS1` to see what variables your prompt
is made up of; the above example contains `\h:\W \u\$`, where `\h` is the
hostname, `\W` the working directory and `\u` the username.

> **Note** <br>
> If you're using `zsh` instead of bash you'll have to replace the backslashes
> (`\`) in the commands with percent signs (`%`).
Some people like to also show the current branch on their prompt, thus avoiding
having to type `git branch` continuously. There are several ways you might do
this, and we're only presenting one of them here: a bash function.
Expand Down

0 comments on commit c746e16

Please sign in to comment.