2020-05-05 13:07:34 -04:00
---
home: true
heroImage: /logo.svg
heroText:
2020-05-15 11:55:21 -04:00
tagline: O prompt minimalista, extremamente rápido e infinitamente personalizável para qualquer shell!
actionText: Primeiros passos →
2020-05-05 13:07:34 -04:00
actionLink: ./guide/
features:
-
2020-05-15 11:55:21 -04:00
title: Compatibilidade primeiro
details: Funciona nos principais shells nos principais sistemas operacionais. Use em qualquer lugar!
2020-05-05 13:07:34 -04:00
-
2020-05-15 11:55:21 -04:00
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.
2020-05-05 13:07:34 -04:00
-
2020-05-15 11:55:21 -04:00
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
2020-05-05 13:07:34 -04:00
#Used for the description meta tag, for SEO
metaTitle: "Starship: Cross-Shell Prompt"
2020-05-15 11:55:21 -04: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 e Powershell.
2020-05-05 13:07:34 -04:00
---
<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
- A [Nerd Font ](https://www.nerdfonts.com/ ) installed and enabled in your terminal.
2021-05-01 14:20:08 -04:00
### Instalação
2020-05-05 13:07:34 -04:00
2020-05-15 11:55:21 -04:00
1. Instale o binário do **starship ** :
2020-05-05 13:07:34 -04:00
2020-05-15 11:55:21 -04:00
#### Instalar a última versão
2020-05-05 13:07:34 -04:00
2020-05-15 11:55:21 -04:00
Com o Shell:
2020-05-05 13:07:34 -04:00
```sh
2021-04-22 17:12:09 -04:00
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
2020-05-05 13:07:34 -04:00
` ``
2021-04-05 10:55:57 -04:00
To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
2020-05-05 13:07:34 -04:00
2020-05-15 11:55:21 -04:00
#### Instalar via Gerenciador de Pacotes
2020-05-05 13:07:34 -04:00
2021-04-08 11:52:32 -04:00
Com o [Homebrew](https://brew.sh/):
2020-05-05 13:07:34 -04:00
` ``sh
brew install starship
` ``
2020-05-15 11:55:21 -04:00
Com o [Scoop](https://scoop.sh):
2020-05-05 13:07:34 -04:00
` ``powershell
scoop install starship
` ``
2020-05-15 11:55:21 -04:00
1. Adicione o script de inicialização ao arquivo de configuração do shell:
2020-05-05 13:07:34 -04:00
#### Bash
2020-05-15 11:55:21 -04:00
Adicione o seguinte comando no final do arquivo ` ~/.bashrc`:
2020-05-05 13:07:34 -04:00
` ``sh
# ~/.bashrc
eval "$(starship init bash)"
` ``
#### Fish
2020-05-15 11:55:21 -04:00
Adicione o seguinte comando no final do arquivo ` ~/.config/fish/config.fish`:
2020-05-05 13:07:34 -04:00
` ``sh
# ~/.config/fish/config.fish
starship init fish | source
` ``
#### Zsh
2020-05-15 11:55:21 -04:00
Adicione o seguinte comando no final do arquivo ` ~/.zshrc`:
2020-05-05 13:07:34 -04:00
` ``sh
# ~/.zshrc
eval "$(starship init zsh)"
` ``
#### Powershell
2020-11-28 23:45:59 -05:00
Add the following to the end of ` Microsoft.PowerShell_profile.ps1`. You can check the location of this file by querying the ` $PROFILE` variable in PowerShell. Typically the path is ` ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` or ` ~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix.
2020-05-05 13:07:34 -04:00
` ``sh
Invoke-Expression (&starship init powershell)
` ``
#### Ion
2020-05-15 11:55:21 -04:00
Adicione o seguinte comando no final do arquivo ` ~/.config/ion/initrc`:
2020-05-05 13:07:34 -04:00
` ``sh
# ~/.config/ion/initrc
eval $(starship init ion)
` ``
2021-02-06 12:46:15 -05:00
#### Elvish
::: warning Only elvish v0.15 or higher is supported. :::
Add the following to the end of ` ~/.elvish/rc.elv`:
` ``sh
# ~/.elvish/rc.elv
eval (starship init elvish)
` ``
2021-03-15 13:18:42 -04:00
#### Tcsh
Add the following to the end of ` ~/.tcshrc`:
` ``sh
# ~/.tcshrc
eval ` starship init tcsh`
` ``