docs: add Pure prompt preset (#3066)
This commit is contained in:
parent
cc417742bb
commit
9637e331ad
Binary file not shown.
After Width: | Height: | Size: 352 KiB |
|
@ -466,3 +466,60 @@ format = 'via [$symbol]($style)'
|
||||||
[zig]
|
[zig]
|
||||||
format = 'via [$symbol]($style)'
|
format = 'via [$symbol]($style)'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Pure
|
||||||
|
|
||||||
|
This preset emulates the look and behavior of [Pure](https://github.com/sindresorhus/pure).
|
||||||
|
|
||||||
|
![Screenshot of Pure preset](/presets/pure-prompt.png)
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
```toml
|
||||||
|
format = """
|
||||||
|
$username\
|
||||||
|
$hostname\
|
||||||
|
$directory\
|
||||||
|
$git_branch\
|
||||||
|
$git_state\
|
||||||
|
$git_status\
|
||||||
|
$cmd_duration\
|
||||||
|
$line_break\
|
||||||
|
$python\
|
||||||
|
$character"""
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
style = "blue"
|
||||||
|
|
||||||
|
[character]
|
||||||
|
success_symbol = "[❯](purple)"
|
||||||
|
error_symbol = "[❯](red)"
|
||||||
|
vicmd_symbol = "[❮](green)"
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
format = "[$branch]($style)"
|
||||||
|
style = "bright-black"
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)"
|
||||||
|
style = "cyan"
|
||||||
|
conflicted = ""
|
||||||
|
untracked = ""
|
||||||
|
modified = ""
|
||||||
|
staged = ""
|
||||||
|
renamed = ""
|
||||||
|
deleted = ""
|
||||||
|
stashed = "≡"
|
||||||
|
|
||||||
|
[git_state]
|
||||||
|
format = '\([$state( $progress_current/$progress_total)]($style)\) '
|
||||||
|
style = "bright-black"
|
||||||
|
|
||||||
|
[cmd_duration]
|
||||||
|
format = "[$duration]($style) "
|
||||||
|
style = "yellow"
|
||||||
|
|
||||||
|
[python]
|
||||||
|
format = "[$virtualenv]($style) "
|
||||||
|
style = "bright-black"
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue