You can test the configurations shown below by sourcing the .zsh
files from the examples directory.
Once you have found a configuration that you like, source it in your .zshrc
.
pijul clone https://nest.pijul.com/ryanbooker/pijul-prompt.zsh
cd pijul-prompt.zsh
examples/print_examples.sh
A prompt using only ASCII characters.
Load this example: source examples/ascii.zsh
..pace/hello_world main +1-1..3>
This example mimics the bash-git-prompt informative git prompt for bash.
Load this example: source examples/bashgitprompt.zsh
~/workspace/hello_world [main ⟳ |+1−1…3]
20:46 $
Load this example: source examples/compact.zsh
..space/hello_world main|+1−1…3❯
Same as shown in screenshot.svg.
Load this example: source examples/default.zsh
../hello_world [main|+1−1…3] ❯❯❯
Load this example: source examples/multiline.zsh
┏╸~/workspace/hello_world · ⎇ main ⤳ /pijul-prompt.zsh ‹+1−1…3›
┗╸❯❯❯
This clone of the Pure prompt has support for Python virtualenvs, but none of the timing features or a vi mode. If you are using fzf, source the example after sourcing fzf's keybindings.
If you want to try other examples again after sourcing the Pure example, you might have to restart your shell, because this prompt will always print a newline between prompts.
Load this example: source examples/pure.zsh
~/workspace/hello_world main +1−1…3
❯
Load this example: source examples/rprompt.zsh
~/workspace/hello_world ≻≻≻ [main|+1−1…3]
The wprompt example is similar to the multi-line and Pure examples, but with optional vi-mode and the secondary prompt enabled.
If you want to try other examples again after sourcing this example, you might have to restart your shell, because this prompt will always print a newline between prompts.
Load this example: source examples/wprompt.zsh
┏╸~/workspace/hello_world · ⎇ main! · +1−1…3
┗╸❯❯❯
Load this example: source examples/wry.zsh
~/workspace/hello_world .. main > /pijul-prompt.zsh +1−1…3 ●```