summaryrefslogtreecommitdiffstats
path: root/docs/pt-PT
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2020-09-30 16:26:13 -0400
committerGitHub <noreply@github.com>2020-09-30 16:26:13 -0400
commitd8dcf04cff71794d15255e46a164a7f3633a11ec (patch)
tree989a55c405ba1d99cd1c740ffaee43e9456742ad /docs/pt-PT
parentd63c7ce3f924bfe5c96bccddb49f452c9190ff7e (diff)
docs(i18n): new Crowdin updates (#1512)
Diffstat (limited to 'docs/pt-PT')
-rw-r--r--docs/pt-PT/config/README.md429
-rw-r--r--docs/pt-PT/faq/README.md4
-rw-r--r--docs/pt-PT/guide/README.md2
-rw-r--r--docs/pt-PT/migrating-to-0.45.0/README.md265
-rw-r--r--docs/pt-PT/presets/README.md9
5 files changed, 630 insertions, 79 deletions
diff --git a/docs/pt-PT/config/README.md b/docs/pt-PT/config/README.md
index 8ec134673..44f8cb4f2 100644
--- a/docs/pt-PT/config/README.md
+++ b/docs/pt-PT/config/README.md
@@ -1,11 +1,5 @@
# Configuration
-::: tip
-
-๐Ÿ”ฅ Configuration is currently being worked on. Many new configuration options will be available in coming releases.
-
-:::
-
To get started configuring starship, create the following file: `~/.config/starship.toml`.
```sh
@@ -39,6 +33,20 @@ Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE
$ENV:STARSHIP_CONFIG = "$HOME\.starship"
```
+### Logging
+
+By default starship logs warnings and errors into a file named `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, where the session key is corresponding to a instance of your terminal. This, however can be changed using the `STARSHIP_CACHE` environment variable:
+
+```sh
+export STARSHIP_CACHE=~/.starship/cache
+```
+
+Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`:
+
+```ps1
+$ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
+```
+
### Terminology
**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of NodeJS that is currently installed on your computer, if your current directory is a NodeJS project.
@@ -102,7 +110,7 @@ For example:
The following symbols have special usage in a format string. If you want to print the following symbols, you have to escape them with a backslash (`\`).
-- $
+- \$
- \\
- [
- ]
@@ -138,15 +146,13 @@ This is the list of prompt-wide configuration options.
| -------------- | ------------------------------ | ----------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `add_newline` | `true` | Add a new line before the start of the prompt. |
### Example
```toml
# ~/.config/starship.toml
-# Disable the newline at the start of the prompt
-format = "$all"
-
# Use custom format
format = """
[โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€>](bold green)
@@ -155,6 +161,9 @@ format = """
# Wait 10 milliseconds for starship to check files under the current directory.
scan_timeout = 10
+
+# Disable the newline at the start of the prompt
+add_newline = false
```
### Default Prompt Format
@@ -162,13 +171,13 @@ scan_timeout = 10
The default `format` is used to define the format of the prompt, if empty or no `format` is provided. The default is as shown:
```toml
-format = "\n$all"
+format = "$all"
# Which is equivalent to
format = """
-
$username\
$hostname\
+$shlvl\
$kubernetes\
$directory\
$git_branch\
@@ -179,6 +188,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$dart\
$dotnet\
$elixir\
$elm\
@@ -190,17 +200,20 @@ $julia\
$nim\
$nodejs\
$ocaml\
+$perl\
$php\
$purescript\
$python\
$ruby\
$rust\
+$swift\
$terraform\
$zig\
$nix_shell\
$conda\
$memory_usage\
$aws\
+$gcloud\
$env_var\
$crystal\
$cmd_duration\
@@ -209,6 +222,7 @@ $line_break\
$jobs\
$battery\
$time\
+$status\
$character"""
```
@@ -494,6 +508,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
| `symbol` | `"๐Ÿ…’ "` | The symbol used before the environment name. |
| `style` | `"bold green"` | The style for the module. |
| `format` | `"[$symbol$environment]($style) "` | The format for the module. |
+| `ignore_base` | `true` | Ignores `base` environment when activated. |
| `disabled` | `false` | Disables the `conda` module. |
### Variables
@@ -550,6 +565,42 @@ The `crystal` module shows the currently installed version of Crystal. The modul
format = "via [โœจ $version](bold blue) "
```
+## Dart
+
+The `dart` module shows the currently installed version of Dart. The module will be shown if any of the following conditions are met:
+
+- The current directory contains a file with `.dart` extension
+- The current directory contains a `.dart_tool` directory
+- The current directory contains a `pubspec.yaml` or `pubspec.lock` file
+
+### Options
+
+| Variable | Default | Description |
+| ---------- | ---------------------------------- | ----------------------------------------------- |
+| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
+| `symbol` | `"๐ŸŽฏ "` | A format string representing the symbol of Dart |
+| `style` | `"bold blue"` | The style for the module. |
+| `disabled` | `false` | Disables the `dart` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | -------- | ------------------------------------ |
+| version | `v2.8.4` | The version of `dart` |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[dart]
+format = "via [๐Ÿ”ฐ $version](bold red) "
+```
+
## Directory
The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in.
@@ -790,7 +841,7 @@ The `env_var` module displays the current value of a selected environment variab
| Variable | Example | Description |
| --------- | ------------------------------------------- | ------------------------------------------ |
-| env_value | `Windows NT` (if *variable* would be `$OS`) | The environment value of option `variable` |
+| env_value | `Windows NT` (if _variable_ would be `$OS`) | The environment value of option `variable` |
| symbol | | Mirrors the value of option `symbol` |
| style\* | `black bold dimmed` | Mirrors the value of option `style` |
@@ -841,6 +892,66 @@ The `erlang` module shows the currently installed version of Erlang/OTP. The mod
format = "via [e $version](bold red) "
```
+## Gcloud
+
+The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
+
+### Options
+
+| Variable | 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. |
+| `disabled` | `false` | Disables the `gcloud` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ----------------- | ------------------------------------------------------------------ |
+| region | `us-central1` | The current GCP region |
+| account | `foo@example.com` | The current GCP profile |
+| project | | The current GCP project |
+| active | `default` | The active config name written in `~/.config/gcloud/active_config` |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
+### Examples
+
+#### Display account and project
+
+```toml
+# ~/.config/starship.toml
+
+[gcloud]
+format = "on [$symbol$account(\\($project\\))]($style) "
+```
+
+#### Display active config name only
+
+```toml
+# ~/.config/starship.toml
+
+[gcloud]
+format = "[$symbol$active]($style) "
+style = "bold yellow"
+```
+
+#### Display account and aliased region
+
+```toml
+# ~/.config/starship.toml
+
+[gcloud]
+symbol = "๏ธ๐Ÿ‡ฌ๏ธ "
+[gcloud.region_aliases]
+us-central1 = "uc1"
+asia-northeast1 = "an1"
+```
+
## Git Branch
The `git_branch` module shows the active branch of the repo in your current directory.
@@ -849,7 +960,7 @@ The `git_branch` module shows the active branch of the repo in your current dire
| Option | Default | Description |
| ------------------- | -------------------------------- | ---------------------------------------------------------------------------------------- |
-| `format` | `"on [$symbol$branch]($style) "` | The format for the module. Use `"$branch"` to refer to the current branch name. |
+| `format` | `"on [$symbol$branch]($style) "` | The format for the module. Use `"$branch"` to refer to the current branch name. |
| `symbol` | `"๎‚  "` | A format string representing the symbol of git branch. |
| `style` | `"bold purple"` | The style for the module. |
| `truncation_length` | `2^63 - 1` | Truncates a git branch to X graphemes. |
@@ -925,7 +1036,7 @@ The `git_state` module will show in directories which are part of a git reposito
| `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
@@ -955,22 +1066,21 @@ The `git_status` module shows symbols representing the state of the repo in your
### Options
-| Option | Default | Description |
-| ----------------- | ----------------------------------------------- | ---------------------------------------------------- |
-| `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` |
-| `diverged` | `"โ‡•"` | The format of `diverged` |
-| `untracked` | `"?"` | The format of `untracked` |
-| `stashed` | `"$"` | The format of `stashed` |
-| `modified` | `"!"` | The format of `modified` |
-| `staged` | `"+"` | The format of `staged` |
-| `renamed` | `"ยป"` | The format of `renamed` |
-| `deleted` | `"โœ˜"` | The format of `deleted` |
-| `show_sync_count` | `false` | Show ahead/behind count of the branch being tracked. |
-| `style` | `"bold red"` | The style for the module. |
-| `disabled` | `false` | Disables the `git_status` module. |
+| Option | Default | Description |
+| ------------ | --------------------------------------------- | ----------------------------------- |
+| `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` |
+| `diverged` | `"โ‡•"` | The format of `diverged` |
+| `untracked` | `"?"` | The format of `untracked` |
+| `stashed` | `"$"` | The format of `stashed` |
+| `modified` | `"!"` | The format of `modified` |
+| `staged` | `"+"` | The format of `staged` |
+| `renamed` | `"ยป"` | The format of `renamed` |
+| `deleted` | `"โœ˜"` | The format of `deleted` |
+| `style` | `"bold red"` | The style for the module. |
+| `disabled` | `false` | Disables the `git_status` module. |
### Variables
@@ -981,12 +1091,12 @@ The following variables can be used in `format`:
| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
| `ahead_behind` | Displays `diverged` `ahead` or `behind` format string based on the current status of the repo |
| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
+| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
+| `stashed` | Displays `stashed` when a stash exists for the local repository. |
+| `modified` | Displays `modified` when there are file modifications in the working directory. |
+| `staged` | Displays `staged` when a new file has been added to the staging area. |
+| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
+| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
| style\* | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -1022,6 +1132,16 @@ renamed = "๐Ÿ‘…"
deleted = "๐Ÿ—‘"
```
+Show ahead/behind count of the branch being tracked
+```toml
+# ~/.config/starship.toml
+
+[git_status]
+ahead = "โ‡ก${count}"
+diverged = "โ‡•โ‡ก${ahead_count}โ‡ฃ${behind_count}"
+behind = "โ‡ฃ${count}"
+```
+
## Golang
The `golang` module shows the currently installed version of Golang. The module will be shown if any of the following conditions are met:
@@ -1108,7 +1228,7 @@ The `hostname` module shows the system hostname.
| ---------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
| `trim_at` | `"."` | String that the hostname is cut off at, after the first match. `"."` will stop after the first dot. `""` will disable any truncation |
-| `format` | `"on [$hostname]($style) "` | The format for the module. |
+| `format` | `"[$hostname]($style) in "` | The format for the module. |
| `style` | `"bold dimmed green"` | The style for the module. |
| `disabled` | `false` | Disables the `hostname` module. |
@@ -1116,7 +1236,6 @@ The `hostname` module shows the system hostname.
| Variable | Example | Description |
| --------- | ------- | ------------------------------------ |
-| number | `1` | The number of jobs |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
@@ -1254,7 +1373,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Option | Default | Description |
| ----------------------- | -------------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `"โ˜ธ "` | A format string representing the symbol displayed before the Cluster. |
-| `format` | `"on [$symbol$context( \\($namespace\\))]($style) "` | 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. |
@@ -1326,14 +1445,14 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Variables
-| Variable | Example | Description |
-| ------------- | ------------- | ------------------------------------------------------------------ |
-| ram | `31GiB/65GiB` | The usage/total RAM of the current system memory. |
-| ram_pct | `48%` | The percentage of the current system memory. |
-| swap\** | `1GiB/4GiB` | The swap memory size of the current system swap memory file. |
-| swap_pct\** | `77%` | The swap memory percentage of the current system swap memory file. |
-| symbol | `๐Ÿ` | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| ---------------- | ------------- | ------------------------------------------------------------------ |
+| ram | `31GiB/65GiB` | The usage/total RAM of the current system memory. |
+| ram_pct | `48%` | The percentage of the current system memory. |
+| swap\*\* | `1GiB/4GiB` | The swap memory size of the current system swap memory file. |
+| swap_pct\*\* | `77%` | The swap memory percentage of the current system swap memory file. |
+| symbol | `๐Ÿ` | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string \*\*: The SWAP file information is only displayed if detected on the current system
@@ -1435,7 +1554,7 @@ The `nix_shell` module shows the nix-shell environment. The module will be shown
| Option | Default | Description |
| ------------ | -------------------------------------------------- | ----------------------------------------------------- |
| `format` | `"via [$symbol$state( \\($name\\))]($style) "` | The format for the module. |
-| `symbol` | `"โ„๏ธ "` | A format string representing the symbol of nix-shell. |
+| `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. |
| `pure_msg` | `"pure"` | A format string shown when the shell is pure. |
@@ -1504,7 +1623,7 @@ format = "via [๐Ÿค– $version](bold green) "
## Package Version
-The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `cargo`, `poetry`, `composer`, `gradle`, `julia` and `mix` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- **npm** โ€“ The `npm` package version is extracted from the `package.json` present in the current directory
- **cargo** โ€“ The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
@@ -1513,6 +1632,8 @@ The `package` module is shown when the current directory is the repository for a
- **gradle** โ€“ The `gradle` package version is extracted from the `build.gradle` present
- **julia** - The package version is extracted from the `Project.toml` present
- **mix** - The `mix` package version is extracted from the `mix.exs` present
+- **helm** - The `helm` chart version is extracted from the `Chart.yaml` present
+- **maven** - The `maven` package version is extracted from the `pom.xml` present
> โš ๏ธ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -1584,6 +1705,42 @@ The `ocaml` module shows the currently installed version of OCaml. The module wi
format = "via [๐Ÿช $version]($style) "
```
+## Perl
+
+The `perl` module shows the currently installed version of Perl. The module will be shown if any of the following conditions are met:
+
+- The current directory contains a `Makefile.PL` or `Build.PL` file
+- The current directory contains a `cpanfile` or `cpanfile.snapshot` file
+- The current directory contains a `META.json` file or `META.yml` file
+- The current directory contains a `.perl-version` file
+- The current directory contains a `.pl`, `.pm` or `.pod`
+
+### Options
+
+| Variable | Default | Description |
+| ---------- | ---------------------------------- | ----------------------------------------------------- |
+| `format` | `"via [$symbol$version]($style) "` | The format string for the module. |
+| `symbol` | `"๐Ÿช "` | The symbol used before displaying the version of Perl |
+| `style` | `"bold 149"` | The style for the module. |
+| `disabled` | `false` | Disables the `perl` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | --------- | ------------------------------------ |
+| version | `v5.26.1` | The version of `perl` |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[perl]
+format = "via [๐Ÿฆช $version]($style) "
+```
+
## PHP
The `php` module shows the currently installed version of PHP. The module will be shown if any of the following conditions are met:
@@ -1640,23 +1797,25 @@ The module will be shown if any of the following conditions are met:
### Options
-| Option | Default | Description |
-| -------------------- | -------------------------------------------------------------- | -------------------------------------------------------------------------- |
-| `format` | `"via [${symbol}${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 |
-| `scan_for_pyfiles` | `true` | If false, Python files in the current directory will not show this module. |
-| `disabled` | `false` | Disables the `python` module. |
+| Option | Default | Description |
+| -------------------- | ----------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
+| `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 |
+| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
+| `scan_for_pyfiles` | `true` | If false, Python files in the current directory will not show this module. |
+| `disabled` | `false` | Disables the `python` module. |
### Variables
-| Variable | Example | Description |
-| ---------- | --------------- | ------------------------------------ |
-| version | `"v3.8.1"` | The version of `python` |
-| symbol | `"๐Ÿ "` | Mirrors the value of option `symbol` |
-| style | `"yellow bold"` | Mirrors the value of option `style` |
-| virtualenv | `"venv"` | The current `virtualenv` name |
+| Variable | Example | Description |
+| ------------ | --------------- | ------------------------------------------ |
+| version | `"v3.8.1"` | The version of `python` |
+| symbol | `"๐Ÿ "` | Mirrors the value of option `symbol` |
+| style | `"yellow bold"` | Mirrors the value of option `style` |
+| pyenv_prefix | `"pyenv "` | Mirrors the value of option `pyenv_prefix` |
+| virtualenv | `"venv"` | The current `virtualenv` name |
<details>
<summary>This module has some advanced configuration options.</summary>
@@ -1684,7 +1843,6 @@ python_binary = "python3"
[python]
symbol = "๐Ÿ‘พ "
pyenv_version_name = true
-pyenv_prefix = "foo "
```
## Ruby
@@ -1758,6 +1916,41 @@ The `rust` module shows the currently installed version of Rust. The module will
format = "via [โš™๏ธ $version](red bold)"
```
+## SHLVL
+
+The `shlvl` module shows the current SHLVL ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+
+### Options
+
+| Variable | Default | Description |
+| ----------- | ---------------------------- | --------------------------------------- |
+| `threshold` | `2` | Display threshold. |
+| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
+| `symbol` | `"โ†•๏ธ "` | The symbol used to represent the SHLVL. |
+| `style` | `"bold yellow"` | The style for the module. |
+| `disabled` | `true` | Disables the `shlvl` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ------- | ------------------------------------ |
+| shlvl | `3` | The current value of SHLVL |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[shlvl]
+disabled = false
+format = "$shlvl level(s) down"
+threshold = 3
+```
+
## Singularity
The `singularity` module shows the current singularity image, if inside a container and `$SINGULARITY_NAME` is set.
@@ -1790,6 +1983,83 @@ The `singularity` module shows the current singularity image, if inside a contai
format = "[๐Ÿ“ฆ \\[$env\\]]($style) "
```
+## Swift
+
+The `swift` module shows the currently installed version of Swift. The module will be shown if any of the following conditions are met:
+
+- The current directory contains a `Package.swift` file
+- The current directory contains a file with the `.swift` extension
+
+### Options
+
+| Option | Default | Description |
+| ---------- | ---------------------------------- | ------------------------------------------------ |
+| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
+| `symbol` | `"๐Ÿฆ "` | A format string representing the symbol of Swift |
+| `style` | `"bold 202"` | The style for the module. |
+| `disabled` | `false` | Disables the `swift` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | -------- | ------------------------------------ |
+| version | `v5.2.4` | The version of `swift` |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[swift]
+format = "via [๐ŸŽ $version](red bold)"
+```
+
+## Status
+
+The `status` module displays the exit code of the previous command. The module will be shown only if the exit code is not `0`.
+
+::: tip
+
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. :::
+
+### Options
+
+| Variable | Default | Description |
+| ---------- | -------------------------- | ------------------------------------------------------ |
+| `format` | `[$symbol$status]($style)` | The format of the module |
+| `symbol` | `"โœ–"` | A format string representing the symbol for the status |
+| `style` | `"bold red"` | The style for the module. |
+| `disabled` | `true` | Disables the `status` module. |
+
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ------- | ------------------------------------ |
+| status | `127` | The exit code of the last command |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
+
+### Example
+```toml
+
+# ~/.config/starship.toml
+
+[status]
+style = "bg:blue"
+symbol = "๐Ÿ’ฃ "
+format = "[\\[$symbol$status\\]]($style) "
+disabled = false
+
+```
+
## Terraform
The `terraform` module shows the currently selected terraform workspace and version. By default the terraform version is not shown, since this is slow on current versions of terraform when a lot of plugins are in use. If you still want to enable it, [follow the example shown below](#with-version). The module will be shown if any of the following conditions are met:
@@ -1894,13 +2164,13 @@ The `username` module shows active user's username. The module will be shown if
### Options
-| Option | Default | Description |
-| ------------- | ------------------------ | ------------------------------------- |
-| `style_root` | `"bold red"` | The style used when the user is root. |
-| `style_user` | `"bold yellow"` | The style used for non-root users. |
-| `format` | `"via [$user]($style) "` | The format for the module. |
-| `show_always` | `false` | Always shows the `username` module. |
-| `disabled` | `false` | Disables the `username` module. |
+| Option | Default | Description |
+| ------------- | ----------------------- | ------------------------------------- |
+| `style_root` | `"bold red"` | The style used when the user is root. |
+| `style_user` | `"bold yellow"` | The style used for non-root users. |
+| `format` | `"[$user]($style) in "` | The format for the module. |
+| `show_always` | `false` | Always shows the `username` module. |
+| `disabled` | `false` | Disables the `username` module. |
### Variables
@@ -1975,7 +2245,13 @@ Multiple custom modules can be defined by using a `.`.
::: tip
-The order in which custom modules are shown can be individually set by setting `custom.foo` in `prompt_order`. By default, the `custom` module will simply show all custom modules in the order they were defined.
+The order in which custom modules are shown can be individually set by including `${custom.foo}` in the top level `format` (as it includes a dot, you need to use `${...}`). By default, the `custom` module will simply show all custom modules in the order they were defined.
+
+:::
+
+::: tip
+
+[Issue #1252](https://github.com/starship/starship/discussions/1252) contains examples of custom modules. If you have an interesting example not covered there, feel free to share it there!
:::
@@ -1983,7 +2259,7 @@ The order in which custom modules are shown can be individually set by setting `
| Option | Default | Description |
| ------------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
-| `command` | | The command whose output should be printed. |
+| `command` | | The command whose output should be printed. The command will be passed on stdin to the she