summaryrefslogtreecommitdiffstats
path: root/docs/ckb-IR/advanced-config/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ckb-IR/advanced-config/README.md')
-rw-r--r--docs/ckb-IR/advanced-config/README.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/ckb-IR/advanced-config/README.md b/docs/ckb-IR/advanced-config/README.md
index fc7a8fa1c..903a9edc2 100644
--- a/docs/ckb-IR/advanced-config/README.md
+++ b/docs/ckb-IR/advanced-config/README.md
@@ -68,6 +68,33 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on  rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## Style Strings
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following: