docs: Update defaults in config docs (#1759)
Have updated some of the config docs to correct the git_status default that was incorrect. Have also taken the time to switch some of the format strings to use toml literal strings rather than normal strings to simplify the escape strings.
This commit is contained in:
parent
e7a83aa445
commit
9044f9e14c
|
@ -247,8 +247,8 @@ is read from the `AWS_VAULT` env var.
|
|||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ---------------- | ------------------------------------------------ | --------------------------------------------------------------- |
|
||||
| `format` | `"on [$symbol$profile(\\($region\\))]($style) "` | The format for the module. |
|
||||
| ---------------- | ---------------------------------------------- | --------------------------------------------------------------- |
|
||||
| `format` | `'on [$symbol$profile(\($region\))]($style) '` | The format for the module. |
|
||||
| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. |
|
||||
| `region_aliases` | | Table of region aliases to display in addition to the AWS name. |
|
||||
| `style` | `"bold yellow"` | The style for the module. |
|
||||
|
@ -273,7 +273,7 @@ is read from the `AWS_VAULT` env var.
|
|||
# ~/.config/starship.toml
|
||||
|
||||
[aws]
|
||||
format = "on [$symbol$profile(\\($region\\))]($style) "
|
||||
format = 'on [$symbol$profile(\($region\))]($style) '
|
||||
style = "bold blue"
|
||||
symbol = "🅰 "
|
||||
[aws.region_aliases]
|
||||
|
@ -360,7 +360,7 @@ style = "bold red"
|
|||
|
||||
The `display` option is an array of the following table.
|
||||
|
||||
| Variable | Description |
|
||||
| Option | Description |
|
||||
| ----------- | ----------------------------------------------- |
|
||||
| `threshold` | The upper bound for the display option. |
|
||||
| `style` | The style used if the display option is in use. |
|
||||
|
@ -600,7 +600,7 @@ The module will be shown if any of the following conditions are met:
|
|||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| Option | Default | Description |
|
||||
| ---------- | ---------------------------------- | ----------------------------------------------- |
|
||||
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
|
||||
| `symbol` | `"🎯 "` | A format string representing the symbol of Dart |
|
||||
|
@ -642,7 +642,7 @@ it would have been `nixpkgs/pkgs`.
|
|||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
|
@ -805,10 +805,10 @@ The module will be shown if any of the following conditions are met:
|
|||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ---------- | --------------------------------------------------------- | --------------------------------------------------------------- |
|
||||
| ---------- | ------------------------------------------------------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `style` | `"bold purple"` | The style for the module. |
|
||||
| `format` | `"via [$symbol$version \\(OTP $otp_version\\)]($style) "` | The format for the module elixir. |
|
||||
| `format` | `'via [$symbol$version \(OTP $otp_version\)]($style) '` | The format for the module elixir. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
|
||||
### Variables
|
||||
|
@ -951,9 +951,9 @@ This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gc
|
|||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------------- | ------------------------------------------------ | --------------------------------------------------------------- |
|
||||
| `format` | `"on [$symbol$account(\\($region\\))]($style) "` | The format for the module. |
|
||||
| Option | Default | Description |
|
||||
| ---------------- | ---------------------------------------------- | --------------------------------------------------------------- |
|
||||
| `format` | `'on [$symbol$account(\($region\))]($style) '` | The format for the module. |
|
||||
| `symbol` | `"☁️ "` | The symbol used before displaying the current GCP profile. |
|
||||
| `region_aliases` | | Table of region aliases to display in addition to the GCP name. |
|
||||
| `style` | `"bold blue"` | The style for the module. |
|
||||
|
@ -980,7 +980,7 @@ This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gc
|
|||
# ~/.config/starship.toml
|
||||
|
||||
[gcloud]
|
||||
format = "on [$symbol$account(\\($project\\))]($style) "
|
||||
format = 'on [$symbol$account(\($project\))]($style) '
|
||||
```
|
||||
|
||||
#### Display active config name only
|
||||
|
@ -1048,9 +1048,9 @@ The `git_commit` module shows the current commit hash of the repo in your curren
|
|||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| -------------------- | -------------------------- | ----------------------------------------------------- |
|
||||
| -------------------- | ------------------------ | ----------------------------------------------------- |
|
||||
| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
|
||||
| `format` | `"[\\($hash\\)]($style) "` | The format for the module. |
|
||||
| `format` | `'[\($hash\)]($style) '` | The format for the module. |
|
||||
| `style` | `"bold green"` | The style for the module. |
|
||||
| `only_detached` | `true` | Only show git commit hash when in detached HEAD state |
|
||||
| `disabled` | `false` | Disables the `git_commit` module. |
|
||||
|
@ -1083,7 +1083,7 @@ that information will be shown too.
|
|||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| -------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
||||
| -------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
||||
| `rebase` | `"REBASING"` | A format string displayed when a `rebase` is in progress. |
|
||||
| `merge` | `"MERGING"` | A format string displayed when a `merge` is in progress. |
|
||||
| `revert` | `"REVERTING"` | A format string displayed when a `revert` is in progress. |
|
||||
|
@ -1092,7 +1092,7 @@ that information will be shown too.
|
|||
| `am` | `"AM"` | A format string displayed when an `apply-mailbox` (`git am`) is in progress. |
|
||||
| `am_or_rebase` | `"AM/REBASE"` | A format string displayed when an ambiguous `apply-mailbox` or `rebase` is in progress. |
|
||||
| `style` | `"bold yellow"` | The style for the module. |
|
||||
| `format` | `"\\([$state( $progress_current/$progress_total)]($style)\\) "` | The format for the module. |
|
||||
| `format` | `'\([$state( $progress_current/$progress_total)]($style)\) '` | The format for the module. |
|
||||
| `disabled` | `false` | Disables the `git_state` module. |
|
||||
|
||||
### Variables
|
||||
|
@ -1112,7 +1112,7 @@ that information will be shown too.
|
|||
# ~/.config/starship.toml
|
||||
|
||||
[git_state]
|
||||
format = "[\\($state( $progress_current of $progress_total)\\)]($style) "
|
||||
format = '[\($state( $progress_current of $progress_total)\)]($style) '
|
||||
cherry_pick = "[🍒 PICKING](bold red)"
|
||||
```
|
||||
|
||||
|
@ -1124,8 +1124,8 @@ current directory.
|
|||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ------------ | ------------------------------------------- | ----------------------------------- |
|
||||
| `format` | `"[\[$all_status$ahead_behind\]]($style) "` | The default format for `git_status` |
|
||||
| ------------ | --------------------------------------------- | ----------------------------------- |
|
||||
| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
|
||||
| `conflicted` | `"="` | This branch has merge conflicts. |
|
||||
| `ahead` | `"⇡"` | The format of `ahead` |
|
||||
| `behind` | `"⇣"` | The format of `behind` |
|
||||
|
@ -1440,11 +1440,10 @@ To enable it, set `disabled` to `false` in your configuration file.
|
|||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ----------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
|
||||
| ----------------------- | -------------------------------------------------- | --------------------------------------------------------------------- |
|
||||
| `symbol` | `"☸ "` | A format string representing the symbol displayed before the Cluster. |
|
||||
| `format` | `"[$symbol$context( \\($namespace\\))]($style) in "` | The format for the module. |
|
||||
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | The format for the module. |
|
||||
| `style` | `"cyan bold"` | The style for the module. |
|
||||
| `namespace_spaceholder` | `none` | The value to display if no namespace was found. |
|
||||
| `context_aliases` | | Table of context aliases to display. |
|
||||
| `disabled` | `true` | Disables the `kubernetes` module. |
|
||||
|
||||
|
@ -1465,7 +1464,7 @@ To enable it, set `disabled` to `false` in your configuration file.
|
|||
# ~/.config/starship.toml
|
||||
|
||||
[kubernetes]
|
||||
format = "on [⛵ $context \\($namespace\\)](dimmed green) "
|
||||
format = 'on [⛵ $context \($namespace\)](dimmed green) '
|
||||
disabled = false
|
||||
[kubernetes.context_aliases]
|
||||
"dev.local.cluster.k8s" = "dev"
|
||||
|
@ -1625,8 +1624,8 @@ The module will be shown when inside a nix-shell environment.
|
|||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ------------ | ---------------------------------------------- | ----------------------------------------------------- |
|
||||
| `format` | `"via [$symbol$state( \\($name\\))]($style) "` | The format for the module. |
|
||||
| ------------ | -------------------------------------------- | ----------------------------------------------------- |
|
||||
| `format` | `'via [$symbol$state( \($name\))]($style) '` | The format for the module. |
|
||||
| `symbol` | `"❄️ "` | A format string representing the symbol of nix-shell. |
|
||||
| `style` | `"bold blue"` | The style for the module. |
|
||||
| `impure_msg` | `"impure"` | A format string shown when the shell is impure. |
|
||||
|
@ -1653,7 +1652,7 @@ The module will be shown when inside a nix-shell environment.
|
|||
disabled = true
|
||||
impure_msg = "[impure shell](bold red)"
|
||||
pure_msg = "[pure shell](bold green)"
|
||||
format = "via [☃️ $state( \\($name\\))](bold blue) "
|
||||
format = 'via [☃️ $state( \($name\))](bold blue) '
|
||||
```
|
||||
|
||||
## NodeJS
|
||||
|
@ -1800,7 +1799,7 @@ The module will be shown if any of the following conditions are met:
|
|||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| Option | Default | Description |
|
||||
| ---------- | ---------------------------------- | ----------------------------------------------------- |
|
||||
| `format` | `"via [$symbol$version]($style) "` | The format string for the module. |
|
||||
| `symbol` | `"🐪 "` | The symbol used before displaying the version of Perl |
|
||||
|
@ -1884,8 +1883,8 @@ The module will be shown if any of the following conditions are met:
|
|||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| -------------------- | ------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
||||
| `format` | `"via [${symbol}${pyenv_prefix}${version}( \\($virtualenv\\))]($style) "` | The format for the module. |
|
||||
| -------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
||||
| `format` | `'via [${symbol}${pyenv_prefix}${version}( \($virtualenv\))]($style) '` | The format for the module. |
|
||||
| `symbol` | `"🐍 "` | A format string representing the symbol of Python |
|
||||
| `style` | `"yellow bold"` | The style for the module. |
|
||||
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
|
||||
|
@ -2007,7 +2006,7 @@ set to a number and meets or exceeds the specified threshold.
|
|||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| Option | Default | Description |
|
||||
| ----------- | ---------------------------- | --------------------------------------- |
|
||||
| `threshold` | `2` | Display threshold. |
|
||||
| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
|
||||
|
@ -2044,8 +2043,8 @@ and `$SINGULARITY_NAME` is set.
|
|||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ---------- | -------------------------------- | ------------------------------------------------ |
|
||||
| `format` | `"[$symbol\\[$env\\]]($style) "` | The format for the module. |
|
||||
| ---------- | ------------------------------ | ------------------------------------------------ |
|
||||
| `format` | `'[$symbol\[$env\]]($style) '` | The format for the module. |
|
||||
| `symbol` | `""` | A format string displayed before the image name. |
|
||||
| `style` | `"bold dimmed blue"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `singularity` module. |
|
||||
|
@ -2066,7 +2065,7 @@ and `$SINGULARITY_NAME` is set.
|
|||
# ~/.config/starship.toml
|
||||
|
||||
[singularity]
|
||||
format = "[📦 \\[$env\\]]($style) "
|
||||
format = '[📦 \[$env\]]($style) '
|
||||
```
|
||||
|
||||
## Swift
|
||||
|
@ -2118,7 +2117,7 @@ To enable it, set `disabled` to `false` in your configuration file.
|
|||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| Option | Default | Description |
|
||||
| ---------- | --------------------------- | ------------------------------------------------------ |
|
||||
| `format` | `[$symbol$status]($style) ` | The format of the module |
|
||||
| `symbol` | `"✖"` | A format string representing the symbol for the status |
|
||||
|
@ -2144,7 +2143,7 @@ To enable it, set `disabled` to `false` in your configuration file.
|
|||
[status]
|
||||
style = "bg:blue"
|
||||
symbol = "💣 "
|
||||
format = "[\\[$symbol$status\\]]($style) "
|
||||
format = '[\[$symbol$status\]]($style) '
|
||||
disabled = false
|
||||
|
||||
```
|
||||
|
@ -2242,7 +2241,7 @@ Manually setting `time_format` will override the `use_12hr` setting.
|
|||
|
||||
[time]
|
||||
disabled = false
|
||||
format = "🕙[\\[ $time \\]]($style) "
|
||||
format = '🕙[\[ $time \]]($style) '
|
||||
time_format = "%T"
|
||||
utc_time_offset = "-5"
|
||||
time_range = "10:00:00-14:00:00"
|
||||
|
|
|
@ -168,7 +168,7 @@ error_symbol = "[✖](bold red)"
|
|||
[git_commit]
|
||||
-- prefix = "("
|
||||
-- suffix = ")"
|
||||
++ format = "[\\($hash\\)]($style) "
|
||||
++ format = '[\($hash\)]($style) '
|
||||
```
|
||||
|
||||
#### Git Status
|
||||
|
@ -186,7 +186,7 @@ error_symbol = "[✖](bold red)"
|
|||
-- prefix = "["
|
||||
-- suffix = "]"
|
||||
-- show_sync_count = false
|
||||
++ format = "[\\[$all_status$ahead_behind\\]]($style)"
|
||||
++ format = '([\[$all_status$ahead_behind\]]($style) )'
|
||||
```
|
||||
|
||||
Previously, the `show_sync_count` property was used to configure the prompt to
|
||||
|
@ -234,7 +234,7 @@ behind = "⇣${count}"
|
|||
[singularity]
|
||||
-- prefix = ""
|
||||
-- suffix = ""
|
||||
++ format = "[$symbol\\[$env\\]]($style) "
|
||||
++ format = '[$symbol\[$env\]]($style) '
|
||||
```
|
||||
|
||||
#### Time
|
||||
|
|
Loading…
Reference in New Issue