mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
docs(i18n): new Crowdin updates (#5237)
* New translations README.md (French) * New translations README.md (French) * New translations README.md (Russian) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Russian) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Ukrainian) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (Norwegian) * New translations README.md (French) * New translations README.md (French) * New translations README.md (Spanish) * New translations README.md (German) * New translations README.md (Japanese) * New translations README.md (Polish) * New translations README.md (Spanish) * New translations README.md (Japanese) * New translations README.md (Polish) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Chinese Simplified) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Ukrainian) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (French) * New translations README.md (Russian) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (Vietnamese) * New translations README.md (Vietnamese) * New translations README.md (Vietnamese) * New translations README.md (French) * New translations README.md (Russian) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (French) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (Polish) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Russian) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (German) * New translations README.md (Japanese) * New translations README.md (Russian) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Ukrainian) * New translations README.md (Ukrainian) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Russian) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Indonesian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Ukrainian) * New translations README.md (Norwegian) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Ukrainian)
This commit is contained in:
@@ -149,7 +149,7 @@ description: O Starship é o prompt minimalista, extremamente rápido e extremam
|
||||
|
||||
::: warning
|
||||
|
||||
Isto irá mudar no futuro. Somente Nushell v0.73+ é suportado.
|
||||
Isto irá mudar no futuro. Somente Nushell v0.78+ é suportado.
|
||||
|
||||
:::
|
||||
|
||||
@@ -162,9 +162,10 @@ description: O Starship é o prompt minimalista, extremamente rápido e extremam
|
||||
E adicione o seguinte ao final da sua configuração do Nushell (encontre-o executando `$nu.config-path`):
|
||||
|
||||
```sh
|
||||
source ~/.cache/starship/init.nu
|
||||
use ~/.cache/starship/init.nu
|
||||
```
|
||||
|
||||
|
||||
#### Xonsh
|
||||
|
||||
Adicione o seguinte ao final do arquivo `~/.xonshrc`:
|
||||
|
||||
+68
-53
@@ -175,17 +175,17 @@ Uma string de formato condicional envolta de `(` e `)` não será renderizada se
|
||||
|
||||
Por exemplo:
|
||||
|
||||
- `'(@$region)'` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region.
|
||||
- `'(some text)'` will always show nothing since there are no variables wrapped in the braces.
|
||||
- When `$combined` is a shortcut for `\[$a$b\]`, `'($combined)'` will show nothing only if `$a` and `$b` are both `None`. This works the same as `'(\[$a$b\] )'`.
|
||||
- `(@$region)` não vai exibir nada caso a variável `region` seja `None` ou vazia, caso contrario vai exibir `@` seguido pelo valor da variável region.
|
||||
- `(texto qualquer)` não vai exibir nada sempre, pois não existe variável entre os parenteses.
|
||||
- Quando usar `$combined` é um atalho para `\[$a$b\]`, `($combined)` só vai exibir algo se `$a` e `$b` são `None`. Isto funciona da mesma forma que `(\[$a$b\] )`.
|
||||
|
||||
### Correspondência negativa
|
||||
|
||||
Muitos módulos têm variáveis `detect_extensions`, `detect_files`, e `detect_folders`. Estas receberão listas de strings para coresponder ou não. Opções "negativas", aquelas que não tem correspondencia, são indicadas com um caractere '!'. A presença de _varios_ indicadores negativos no diretório resultara que o módulo não sera correspondido.
|
||||
|
||||
Extensions are matched against both the characters after the last dot in a filename, and the characters after the first dot in a filename. For example, `foo.bar.tar.gz` will be matched against `bar.tar.gz` and `gz` in the `detect_extensions` variable. Files whose name begins with a dot are not considered to have extensions at all.
|
||||
As extensões são combinadas com os dois caracteres após o último ponto em um nome de arquivo e os caracteres após o primeiro ponto em um nome de arquivo. Por exemplo, `foo.bar.tar.gz` vai ser comparada com `bar.tar.gz` e `gz` na `detect_extensions` variavel. Arquivos que o nome começa com um ponto não são considerados ter nenhuma extensão.
|
||||
|
||||
To see how this works in practice, you could match TypeScript but not MPEG Transport Stream files thus:
|
||||
Para ver como isso funciona na prática, você pode combinar TypeScript mas não arquivos MPEG Transport Stream:
|
||||
|
||||
```toml
|
||||
detect_extensions = ['ts', '!video.ts', '!audio.ts']
|
||||
@@ -197,15 +197,15 @@ Esta é a lista de opções de configuração em todo o prompt.
|
||||
|
||||
### Opções
|
||||
|
||||
| Opções | Padrão | Descrição |
|
||||
| ----------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `format` | [link](#default-prompt-format) | Configura o formato do prompt. |
|
||||
| `right_format` | `''` | Veja [Ativa o prompt direito](/advanced-config/#enable-right-prompt) |
|
||||
| `scan_timeout` | `30` | Tempo limite para escanear arquivos (em milissegundos). |
|
||||
| `command_timeout` | `500` | Tempo limite de execução de comandos pelo starship (em milissegundos). |
|
||||
| `add_newline` | `true` | Insere linha vazia entre os prompts do shell. |
|
||||
| `palette` | `''` | Define qual a paleta de cores de `palettes` será usada. |
|
||||
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
|
||||
| Opções | Padrão | Descrição |
|
||||
| ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `format` | [link](#default-prompt-format) | Configura o formato do prompt. |
|
||||
| `right_format` | `''` | Veja [Ativa o prompt direito](/advanced-config/#enable-right-prompt) |
|
||||
| `scan_timeout` | `30` | Tempo limite para escanear arquivos (em milissegundos). |
|
||||
| `command_timeout` | `500` | Tempo limite de execução de comandos pelo starship (em milissegundos). |
|
||||
| `add_newline` | `true` | Insere linha vazia entre os prompts do shell. |
|
||||
| `palette` | `''` | Define qual a paleta de cores de `palettes` será usada. |
|
||||
| `palettes` | `{}` | Coleção de paletas de cores que atribuem [cores](/advanced-config/#style-strings) aos nomes definidos pelo usuário. Note que paletas de cores não podem referir-se a suas próprias definições de cores. |
|
||||
|
||||
### Exemplo
|
||||
|
||||
@@ -1060,7 +1060,7 @@ format = 'via [🦕 $version](green bold) '
|
||||
|
||||
O módulo `directory` exibe o caminho do diretório atual, truncando as três pastas pai. Seu diretório será truncando na raiz do repositório git que você estiver atualmente.
|
||||
|
||||
Quando usar a opção de estilo fish pwd, ao invés de esconder o caminho que é truncado, você vai ver um nome encurtado de cada diretório baseado no número que você habilitar para a opção.
|
||||
Ao usar a opção `fish_style_pwd_dir_length`, em vez de esconder o caminho que é truncado, você verá um nome encurtado de cada diretório com base no número que você habilitar para a opção.
|
||||
|
||||
Por exemplo, dado `~/Dev/Nix/nixpkgs/pkgs` onde `nixpkgs` é o repositório raiz e a opção esta definida para `1`. Você verá `~/D/N/nixpkgs/pkgs`, enquanto antes seria `nixpkgs/pkgs`.
|
||||
|
||||
@@ -3607,14 +3607,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int
|
||||
|
||||
### Opções
|
||||
|
||||
| Opções | Padrão | Descrição |
|
||||
| ----------- | ---------------------------- | ----------------------------------------------------------------- |
|
||||
| `threshold` | `2` | Limite de exibição. |
|
||||
| `format` | `'[$symbol$shlvl]($style) '` | O formato do módulo. |
|
||||
| `symbol` | `'↕️ '` | O simbolo usado para representar o `SHLVL`. |
|
||||
| `repeat` | `false` | Caso o `symbol` deva se repetir de acordo com o total do `SHLVL`. |
|
||||
| `style` | `'bold yellow'` | O estilo do módulo. |
|
||||
| `disabled` | `true` | Desabilita o módulo `shlvl`. |
|
||||
| Opções | Padrão | Descrição |
|
||||
| --------------- | ---------------------------- | ------------------------------------------------------------------- |
|
||||
| `threshold` | `2` | Limite de exibição. |
|
||||
| `format` | `'[$symbol$shlvl]($style) '` | O formato do módulo. |
|
||||
| `symbol` | `'↕️ '` | O simbolo usado para representar o `SHLVL`. |
|
||||
| `repeat` | `false` | Caso o `symbol` deva se repetir de acordo com o total do `SHLVL`. |
|
||||
| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value |
|
||||
| `style` | `'bold yellow'` | O estilo do módulo. |
|
||||
| `disabled` | `true` | Desabilita o módulo `shlvl`. |
|
||||
|
||||
### Variáveis
|
||||
|
||||
@@ -3637,6 +3638,20 @@ format = '$shlvl level(s) down'
|
||||
threshold = 3
|
||||
```
|
||||
|
||||
Using `repeat` and `repeat_offset` along with `character` module, one can get prompt like `❯❯❯` where last character is colored appropriately for return status code and preceeding characters are provided by `shlvl`.
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[shlvl]
|
||||
disabled = false
|
||||
format = '[$symbol$shlvl]($style)'
|
||||
repeat = true
|
||||
symbol = '❯'
|
||||
repeat_offset = 1
|
||||
threshold = 0
|
||||
```
|
||||
|
||||
## Singularidade
|
||||
|
||||
O módulo `singularity` exibe a imagem atual do [Singularity](https://sylabs.io/singularity/), se dentro de um contêiner e definido `$SINGULARITY_NAME`.
|
||||
@@ -3752,38 +3767,38 @@ Este módulo é desabilitado por padrão. Para habilitar, defina `disabled` para
|
||||
|
||||
### Opções
|
||||
|
||||
| Opções | Padrão | Descrição |
|
||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||
| `format` | `'[$symbol$status]($style) '` | O formato do módulo |
|
||||
| `symbol` | `'❌'` | O simbolo exibido no erro de programa |
|
||||
| `success_symbol` | `''` | O simbolo exibido no sucesso de programa |
|
||||
| `not_executable_symbol` | `'🚫'` | O simbolo exibido quando o arquivo não é executável |
|
||||
| `not_found_symbol` | `'🔍'` | O simbolo exibido quando o comando não é encontrado |
|
||||
| `sigint_symbol` | `'🧱'` | O simbolo exibido no SIGINT (Ctrl + c) |
|
||||
| `signal_symbol` | `'⚡'` | O simbolo exibido em qualquer sinal |
|
||||
| `style` | `'bold red'` | O estilo do módulo. |
|
||||
| `recognize_signal_code` | `true` | Habilita o mapeamento de sinais para códigos de saída |
|
||||
| `map_symbol` | `false` | Habilita o mapeamento de símbolos para códigos de saída |
|
||||
| `pipestatus` | `false` | Habilita o relatório de pipestatus |
|
||||
| `pipestatus_separator` | <code>|</code> | The symbol used to separate pipestatus segments (supports formatting) |
|
||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | O formato do módulo quando o comando é um pipeline |
|
||||
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
|
||||
| `disabled` | `true` | Desabilita o módulo `status`. |
|
||||
| Opções | Padrão | Descrição |
|
||||
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
||||
| `format` | `'[$symbol$status]($style) '` | O formato do módulo |
|
||||
| `symbol` | `'❌'` | O simbolo exibido no erro de programa |
|
||||
| `success_symbol` | `''` | O simbolo exibido no sucesso de programa |
|
||||
| `not_executable_symbol` | `'🚫'` | O simbolo exibido quando o arquivo não é executável |
|
||||
| `not_found_symbol` | `'🔍'` | O simbolo exibido quando o comando não é encontrado |
|
||||
| `sigint_symbol` | `'🧱'` | O simbolo exibido no SIGINT (Ctrl + c) |
|
||||
| `signal_symbol` | `'⚡'` | O simbolo exibido em qualquer sinal |
|
||||
| `style` | `'bold red'` | O estilo do módulo. |
|
||||
| `recognize_signal_code` | `true` | Habilita o mapeamento de sinais para códigos de saída |
|
||||
| `map_symbol` | `false` | Habilita o mapeamento de símbolos para códigos de saída |
|
||||
| `pipestatus` | `false` | Habilita o relatório de pipestatus |
|
||||
| `pipestatus_separator` | <code>|</code> | O símbolo usado para separar segmentos de pipestatus (suporta formatação) |
|
||||
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | O formato do módulo quando o comando é um pipeline |
|
||||
| `pipestatus_segment_format` | | Quando especificado, substitui o `format` quando ha formatação de segmentos pipestatus |
|
||||
| `disabled` | `true` | Desabilita o módulo `status`. |
|
||||
|
||||
### Variáveis
|
||||
|
||||
| Variável | Exemplo | Descrição |
|
||||
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
|
||||
| status | `127` | O codígo de saída do último comando |
|
||||
| hex_status | `0x7F` | O codígo de saída do último comando em hex |
|
||||
| int | `127` | O codígo de saída do último comando |
|
||||
| common_meaning | `ERROR` | Significa que o código não é um sinal |
|
||||
| signal_number | `9` | Número do sinal correspondente ao código de saída, apenas se sinalizado |
|
||||
| signal_name | `KILL` | Nome do sinal correspondente ao código de saída, apenas se for sinalizado |
|
||||
| maybe_int | `7` | Contém o código de saída quando nenhum significado for encontrado |
|
||||
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
|
||||
| symbol | | Espelha o valor da opção `symbol` |
|
||||
| style\* | | Espelha o valor da opção `style` |
|
||||
| Variável | Exemplo | Descrição |
|
||||
| -------------- | ------- | -------------------------------------------------------------------------------------------------------- |
|
||||
| status | `127` | O codígo de saída do último comando |
|
||||
| hex_status | `0x7F` | O codígo de saída do último comando em hex |
|
||||
| int | `127` | O codígo de saída do último comando |
|
||||
| common_meaning | `ERROR` | Significa que o código não é um sinal |
|
||||
| signal_number | `9` | Número do sinal correspondente ao código de saída, apenas se sinalizado |
|
||||
| signal_name | `KILL` | Nome do sinal correspondente ao código de saída, apenas se for sinalizado |
|
||||
| maybe_int | `7` | Contém o código de saída quando nenhum significado for encontrado |
|
||||
| pipestatus | | Exibição do pipeline de programas com os códigos de saída, este é apenas disponível no pipestatus_format |
|
||||
| symbol | | Espelha o valor da opção `symbol` |
|
||||
| style\* | | Espelha o valor da opção `style` |
|
||||
|
||||
*: Esta variável só pode ser usada como parte de uma string de estilo
|
||||
|
||||
@@ -4227,7 +4242,7 @@ Strings de formatação também podem conter sequencias de prompt especificas de
|
||||
| ------------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `command` | `''` | O comando cuja a saída deve ser exibida. O comando será passado no stdin para o shell. |
|
||||
| `when` | `false` | Ou um valor booleano (`true` ou `false`, sem aspas) ou um comando shell de string usado como condição para mostrar o módulo. No caso de uma string, o módulo será mostrado se o comando retornar um código de status `0`. |
|
||||
| `require_repo` | `false` | If `true`, the module will only be shown in paths containing a (git) repository. This option alone is not sufficient display condition in absence of other options. |
|
||||
| `require_repo` | `false` | Se `true`, o módulo será exibido apenas em caminhos que contenham um repositório (git). Esta opção, por si só, não é uma condição de exibição suficiente na ausência de outras opções. |
|
||||
| `shell` | | [Veja abaixo](#custom-command-shell) |
|
||||
| `description` | `'<custom module>'` | A descrição do módulo, isto será exibido quando executar `starship explain`. |
|
||||
| `detect_files` | `[]` | Os arquivos que serão buscados por correspondência no diretório atual. |
|
||||
|
||||
@@ -223,9 +223,8 @@ Ou instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes:
|
||||
| **_Qualquer_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
|
||||
| _Qualquer_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
|
||||
| _Qualquer_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
|
||||
| _Qualquer_ | [Snapcraft](https://snapcraft.io/starship) | `snap install --edge starship` |
|
||||
| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
|
||||
| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` |
|
||||
| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` |
|
||||
| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` <br /> `dnf install starship` |
|
||||
| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
|
||||
| Manjaro | | `pacman -S starship` |
|
||||
@@ -345,10 +344,10 @@ starship init nu | save -f ~/.cache/starship/init.nu
|
||||
E adicione o seguinte ao final da sua configuração do Nushell (encontre-o executando `$nu.config-path`):
|
||||
|
||||
```sh
|
||||
source ~/.cache/starship/init.nu
|
||||
use ~/.cache/starship/init.nu
|
||||
```
|
||||
|
||||
Nota: Somente o Nushell v0.73+ é suportado
|
||||
Nota: Somente o Nushell v0.78+ é suportado
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user