Files
starship/docs/pt-BR/README.md
T

188 lines
4.4 KiB
Markdown
Raw Normal View History

---
home: true
heroImage: /logo.svg
heroText:
tagline: O prompt minimalista, extremamente rápido e infinitamente personalizável para qualquer shell!
actionText: Primeiros passos →
actionLink: ./guide/
features:
-
title: Compatibilidade primeiro
details: Funciona nos principais shells nos principais sistemas operacionais. Use em qualquer lugar!
-
title: Poder do Rust
details: Tenha o melhor da velocidade e segurança do Rust, para tornar seu prompt o mais rápido e confiável possível.
-
title: Personalizável
details: Cada pequeno detalhe é personalizável ao seu gosto, para tornar esse prompt o mínimo possível ou rico em recursos, como você preferir.
footer: Licenciado pelo ISC | Todos os direitos reservados © 2019-Presente | Contribuidores Starship
#Used for the description meta tag, for SEO
metaTitle: "Starship: Cross-Shell Prompt"
2022-02-07 15:53:55 +01:00
description: O Starship é o prompt minimalista, extremamente rápido e extremamente personalizável para qualquer shell! Mostra as informações que você precisa, mantendo-se elegante e minimalista. Instalação rápida disponível para Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd e PowerShell.
---
<div class="center">
<video class="demo-video" muted autoplay loop playsinline>
<source src="/demo.webm" type="video/webm">
<source src="/demo.mp4" type="video/mp4">
</video>
</div>
2021-04-22 17:12:09 -04:00
### Pré-requisitos
2021-06-20 14:10:36 -04:00
- Uma fonte [Nerd Font](https://www.nerdfonts.com/) instalada e ativada em seu terminal.
2021-04-22 17:12:09 -04:00
2021-05-01 14:20:08 -04:00
### Instalação
1. Instale o binário do **starship**:
2022-03-24 15:47:11 -05:00
#### Instalando a última versão
Com o Shell:
```sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh
```
2022-03-08 21:11:36 -05:00
2021-06-20 14:10:36 -04:00
Para atualizar o Starship de maneira manual, execute novamente o script acima. Isto irá substituir a versão atual sem alterar as configurações do Starship.
2022-03-24 15:47:11 -05:00
#### Instalar via gerenciador de pacotes
2021-04-08 11:52:32 -04:00
Com o [Homebrew](https://brew.sh/):
```sh
brew install starship
```
2022-10-14 21:53:32 -04:00
With [Winget](https://github.com/microsoft/winget-cli):
```powershell
2022-10-14 21:53:32 -04:00
winget install starship
```
2022-03-24 15:47:11 -05:00
1. Adicione o script de inicialização no arquivo de configuração do seu shell:
#### Bash
Adicione o seguinte comando no final do arquivo `~/.bashrc`:
```sh
# ~/.bashrc
eval "$(starship init bash)"
```
#### Fish
Adicione o seguinte comando no final do arquivo `~/.config/fish/config.fish`:
```sh
# ~/.config/fish/config.fish
starship init fish | source
```
#### Zsh
Adicione o seguinte comando no final do arquivo `~/.zshrc`:
```sh
# ~/.zshrc
eval "$(starship init zsh)"
```
#### Powershell
2022-03-24 15:47:11 -05:00
Adicione o comando a seguir ao final do arquivo `Microsoft.PowerShell_profile.ps1`. Você pode checar a localização deste arquivo consultando a variável `$PROFILE` no PowerShell. Normalmente o caminho é `~\Documentos\PowerShell\Microsoft.PowerShell_profile.ps1` ou `~/.config/powershell/Microsoft.PowerShell_profile.ps1` no -Nix.
```sh
Invoke-Expression (&starship init powershell)
```
#### Ion
Adicione o seguinte comando no final do arquivo `~/.config/ion/initrc`:
```sh
# ~/.config/ion/initrc
eval $(starship init ion)
```
2021-02-06 12:46:15 -05:00
2021-08-14 09:24:51 -04:00
2021-02-06 12:46:15 -05:00
#### Elvish
2022-05-24 17:19:44 -04:00
::: atenção
Only elvish v0.18 or higher is supported.
:::
2021-02-06 12:46:15 -05:00
2021-06-20 14:10:36 -04:00
Adicione o comando a seguir ao final do arquivo `~/.elvish/rc.elv`:
2021-02-06 12:46:15 -05:00
```sh
# ~/.elvish/rc.elv
eval (starship init elvish)
```
2021-03-15 13:18:42 -04:00
#### Tcsh
2021-06-20 14:10:36 -04:00
Adicione ao final do arquivo `~/.tcshrc`:
2021-03-15 13:18:42 -04:00
```sh
# ~/.tcshrc
eval `starship init tcsh`
```
2021-07-10 17:15:23 -04:00
2021-08-14 09:24:51 -04:00
#### Nushell
2022-05-24 17:19:44 -04:00
::: atenção
This will change in the future. Somente Nushell v0.61+ é suportado.
:::
Add the following to to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
2022-03-24 15:47:11 -05:00
```sh
mkdir ~/.cache/starship
starship init nu | save ~/.cache/starship/init.nu
2021-07-10 17:15:23 -04:00
```
2021-08-14 09:24:51 -04:00
2022-05-24 17:19:44 -04:00
E adicione o seguinte ao final da sua configuração do Nushell (encontre-o executando `$nu.config-path`):
2022-03-24 15:47:11 -05:00
```sh
source ~/.cache/starship/init.nu
```
2021-08-14 09:24:51 -04:00
#### Xonsh
Adicione o seguinte ao final do arquivo `~/.xonshrc`:
```sh
# ~/.xonshrc
execx($(starship init xonsh))
```
2022-01-15 17:08:31 -05:00
#### Cmd
2022-04-18 09:48:28 -05:00
Você precisa do [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) com Cmd. Adicione o seguinte num arquivo `starship.lua` e coloque este arquivo no diretório scripts do Clink:
2022-01-15 17:08:31 -05:00
```lua
-- starship.lua
load(io.popen('starship init cmd'):read("*a"))()
```