diff options
author | Matan Kushner <hello@matchai.dev> | 2020-05-23 19:10:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-23 19:10:58 -0400 |
commit | accba5027db40bdcc66bef264d6081b919e926f8 (patch) | |
tree | 616a68192c186cb84ce5b9d32082979db36183e3 /docs/pt-BR | |
parent | 63799b97d17fb7bd0c691c86117ecae7da1fc1ed (diff) |
docs(i18n): new Crowdin translations (#1238)
Diffstat (limited to 'docs/pt-BR')
-rw-r--r-- | docs/pt-BR/advanced-config/README.md | 2 | ||||
-rw-r--r-- | docs/pt-BR/config/README.md | 84 | ||||
-rw-r--r-- | docs/pt-BR/faq/README.md | 2 |
3 files changed, 86 insertions, 2 deletions
diff --git a/docs/pt-BR/advanced-config/README.md b/docs/pt-BR/advanced-config/README.md index 584266f93..eb71bae70 100644 --- a/docs/pt-BR/advanced-config/README.md +++ b/docs/pt-BR/advanced-config/README.md @@ -1,4 +1,4 @@ -# Advanced Configuration +# Configuração avançada While Starship is a versatile shell, sometimes you need to do more than edit `starship.toml` to get it to do certain things. This page details some of the more advanced configuration techniques used in starship. diff --git a/docs/pt-BR/config/README.md b/docs/pt-BR/config/README.md index 07aee6799..3fa159483 100644 --- a/docs/pt-BR/config/README.md +++ b/docs/pt-BR/config/README.md @@ -32,6 +32,11 @@ Você pode alterar o caminho padrão do arquivo `starship.toml` com a variável export STARSHIP_CONFIG=~/.starship ``` +Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`: +```ps1 +$ENV:STARSHIP_CONFIG = "$HOME\.starship" +``` + ### Terminologia **Módulo**: Um componente no prompt que fornece informações baseado no contexto do seu SO. Por exemplo, o módulo "nodejs" mostra a versão do NodeJS instalado no seu computador, se o diretório atual for um projeto NodeJS. @@ -109,11 +114,14 @@ prompt_order = [ "java", "julia", "nodejs", + "ocaml", "php", + "purescript", "python", "ruby", "rust", "terraform", + "zig", "nix_shell", "conda", "memory_usage", @@ -1028,6 +1036,34 @@ The `package` module is shown when the current directory is the repository for a symbol = "🎁 " ``` +## OCaml + +The `ocaml` module shows the currently installed version of OCaml. The module will be shown if any of the following conditions are met: + +- The current directory contains a file with `.opam` extension or `_opam` directory +- The current directory contains a `esy.lock` directory +- The current directory contains a `dune` or `dune-project` file +- The current directory contains a `jbuild` or `jbuild-ignore` file +- The current directory contains a `.merlin` file +- The current directory contains a file with `.ml`, `.mli`, `.re` or `.rei` extension + +### Options + +| Variable | Default | Description | +| ---------- | --------------- | ------------------------------------------------------- | +| `symbol` | `"🐫 "` | The symbol used before displaying the version of OCaml. | +| `style` | `"bold yellow"` | The style for the module. | +| `disabled` | `false` | Disables the `ocaml` module. | + +### Example + +```toml +# ~/.config/starship.toml + +[ocaml] +symbol = "🐪 " +``` + ## PHP The `php` module shows the currently installed version of PHP. The module will be shown if any of the following conditions are met: @@ -1251,6 +1287,30 @@ The `username` module shows active user's username. The module will be shown if disabled = true ``` + +## Zig + +The `zig` module shows the currently installed version of Zig. The module will be shown if any of the following conditions are met: + +- The current directory contains a `.zig` file + +### Options + +| Variable | Default | Description | +| ---------- | --------------- | ----------------------------------------------------- | +| `symbol` | `"↯ "` | The symbol used before displaying the version of Zig. | +| `style` | `"bold yellow"` | The style for the module. | +| `disabled` | `false` | Disables the `zig` module. | + +### Example + +```toml +# ~/.config/starship.toml + +[zig] +symbol = "⚡️ " +``` + ## Custom commands The `custom` modules show the output of some arbitrary commands. @@ -1301,3 +1361,27 @@ files = ["foo"] # can specify filters when = """ test "$HOME" == "$PWD" """ prefix = " transcending " ``` + +## PureScript + +The `purescript` module shows the currently installed version of PureScript version. The module will be shown if any of the following conditions are met: + +- The current directory contains a `spago.dhall` file +- The current directory contains a \*.purs files + +### Options + +| Variable | Default | Description | +| ---------- | -------------- | ------------------------------------------------------------ | +| `symbol` | `"<=> "` | The symbol used before displaying the version of PureScript. | +| `style` | `"bold white"` | The style for the module. | +| `disabled` | `false` | Disables the `purescript` module. | + +### Example + +```toml +# ~/.config/starship.toml + +[purescript] +symbol = "<=> " +``` diff --git a/docs/pt-BR/faq/README.md b/docs/pt-BR/faq/README.md index bc758c89a..709a8e8d0 100644 --- a/docs/pt-BR/faq/README.md +++ b/docs/pt-BR/faq/README.md @@ -31,7 +31,7 @@ STATUS=$? NUM_JOBS=$(jobs -p | wc -l) # Set the prompt to the output of `starship prompt` -PS1="$(starship prompt --status=$STATUS --jobs=NUM_JOBS)" +PS1="$(starship prompt --status=$STATUS --jobs=$NUM_JOBS)" ``` The [Bash implementation](https://github.com/starship/starship/blob/master/src/init/starship.bash) built into Starship is slightly more complex to allow for advanced features like the [Command Duration module](https://starship.rs/config/#Command-Duration) and to ensure that Starship is compatible with pre-installed Bash configurations. |