diff options
author | Tim Kelty <tim@timkelty.com> | 2021-09-30 20:03:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 20:03:45 -0400 |
commit | 9637e331ad54d596df060f761e1f49f0a3193717 (patch) | |
tree | e140923a48a84cbbda381b34869cb86e30037fb7 /docs | |
parent | cc417742bbfe193ee9fc0d2784e4d76581f6502b (diff) |
docs: add Pure prompt preset (#3066)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/.vuepress/public/presets/pure-prompt.png | bin | 0 -> 359935 bytes | |||
-rw-r--r-- | docs/presets/README.md | 57 |
2 files changed, 57 insertions, 0 deletions
diff --git a/docs/.vuepress/public/presets/pure-prompt.png b/docs/.vuepress/public/presets/pure-prompt.png Binary files differnew file mode 100644 index 000000000..6b078e371 --- /dev/null +++ b/docs/.vuepress/public/presets/pure-prompt.png diff --git a/docs/presets/README.md b/docs/presets/README.md index 7c8ce2ee0..66e7ebe25 100644 --- a/docs/presets/README.md +++ b/docs/presets/README.md @@ -466,3 +466,60 @@ format = 'via [$symbol]($style)' [zig] 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" +``` |