Files

450 lines
18 KiB
Markdown
Raw Permalink Normal View History

<p align="center">
<img
width="400"
src="https://raw.githubusercontent.com/starship/starship/master/media/logo.png"
2021-03-15 13:18:42 -04:00
alt="Starship Cross-shell prompt"
/>
</p>
<p align="center">
<a href="https://github.com/starship/starship/actions"
><img
2023-02-01 01:14:38 +09:00
src="https://img.shields.io/github/actions/workflow/status/starship/starship/workflow.yml?branch=master&label=workflow&style=flat-square"
2021-03-15 13:18:42 -04:00
alt="Status do workflow Actions do GitHub"
/></a>
<a href="https://crates.io/crates/starship"
><img
src="https://img.shields.io/crates/v/starship?style=flat-square"
2021-03-15 13:18:42 -04:00
alt="Versão no Crates.io"
/></a>
<a href="https://repology.org/project/starship/versions"
><img
src="https://img.shields.io/repology/repositories/starship?label=in%20repositories&style=flat-square"
alt="Status do pacote" /></a
><br />
2021-02-21 14:13:18 -05:00
<a href="https://discord.gg/starship"
><img
src="https://img.shields.io/discord/567163873606500352?label=discord&logoColor=white&style=flat-square"
2021-03-15 13:18:42 -04:00
alt="Chat no Discord"
/></a>
<a href="https://twitter.com/StarshipPrompt"
><img
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
2021-03-15 13:18:42 -04:00
alt="Siga o @StarshipPrompt no Twitter"
/></a>
2023-12-29 03:07:36 +09:00
<a href="https://stand-with-ukraine.pp.ua"
><img
src="https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraineFlat.svg"
2024-10-18 03:20:57 +09:00
alt="A favor da Ucrânia"
2023-12-29 03:07:36 +09:00
/></a>
</p>
<p align="center">
2024-03-21 20:42:05 +09:00
<a href="https://starship.rs">Site</a>
·
<a href="#🚀-installation">Instalação</a>
·
2024-03-21 20:42:05 +09:00
<a href="https://starship.rs/config/">Configuração</a>
</p>
<p align="center">
<a href="https://github.com/starship/starship/blob/master/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
2021-03-15 13:18:42 -04:00
alt="English"
/></a>
&nbsp;
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/de-DE/guide/README.md"
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-de.png"
alt="Deutsch"
2021-03-15 13:18:42 -04:00
/></a>
&nbsp;
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/es-ES/guide/README.md"
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-es.png"
alt="Español"
2021-03-15 13:18:42 -04:00
/></a>
&nbsp;
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/fr-FR/guide/README.md"
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png"
alt="Français"
2022-01-15 17:08:31 -05:00
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/id-ID/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-id.png"
alt="Bahasa Indonesia"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/it-IT/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-it.png"
alt="Italiano"
2021-03-15 13:18:42 -04:00
/></a>
&nbsp;
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/ja-JP/guide/README.md"
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-jp.png"
alt="日本語"
2021-03-15 13:18:42 -04:00
/></a>
&nbsp;
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/pt-BR/guide/README.md"
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-br.png"
alt="Português do Brasil"
2021-03-15 13:18:42 -04:00
/></a>
&nbsp;
2021-04-05 10:55:57 -04:00
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/ru-RU/guide/README.md"
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-ru.png"
alt="Русский"
2023-06-06 10:10:23 -04:00
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/uk-UA/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-ua.png"
alt="Українська"
2021-03-15 13:18:42 -04:00
/></a>
&nbsp;
2021-04-05 10:55:57 -04:00
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/vi-VN/guide/README.md"
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-vn.png"
alt="Tiếng Việt"
2021-03-15 13:18:42 -04:00
/></a>
2021-02-06 12:46:15 -05:00
&nbsp;
2021-04-05 10:55:57 -04:00
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/zh-CN/guide/README.md"
2021-02-06 12:46:15 -05:00
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-cn.png"
alt="简体中文"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/zh-TW/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-tw.png"
alt="繁體中文"
2021-03-15 13:18:42 -04:00
/></a>
</p>
<h1></h1>
<img
src="https://raw.githubusercontent.com/starship/starship/master/media/demo.gif"
2022-04-18 09:48:28 -05:00
alt="Starship com iTerm2 e o tema Snazzy"
width="50%"
2021-03-15 13:18:42 -04:00
align="right"
/>
**O prompt minimalista, extremamente rápido e infinitamente personalizável para qualquer shell!**
- **Rápido:** É rápido _muito muito_ rápido! 🚀
- **Personalizável:** Configure todos os detalhes do seu prompt.
- **Universal:** Funciona em qualquer shell, em qualquer sistema operacional.
- **Inteligente:** Mostra informações relevantes rapidamente.
- **Muitos recursos:** Suporte para todas as suas ferramentas favoritas.
2025-04-28 00:53:07 +09:00
- **Fácil:** Instalação rápida comece a usar em minutos.
<p align="center">
2024-03-21 20:42:05 +09:00
<a href="https://starship.rs/config/"><strong>Consulte a documentação&nbsp;&nbsp;▶</strong></a>
</p>
<a name="🚀-installation"></a>
## 🚀 Instalação
### Pré-requisitos
2023-06-06 10:10:23 -04:00
- Uma [Nerd Font](https://www.nerdfonts.com/) instalada e ativa em seu terminal (por exemplo, tente a [ FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)).
2022-02-07 15:53:55 +01:00
### 1º passo. Instalar o Starship
2022-04-18 09:48:28 -05:00
Selecione seu sistema operacional na lista abaixo para ver as instruções de instalação:
2021-01-07 18:08:18 -05:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Android</summary>
2022-04-18 09:48:28 -05:00
Instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes:
2022-02-07 15:53:55 +01:00
| Repositório | Instruções |
| --------------------------------------------------------------------------------- | ---------------------- |
| [Termux](https://github.com/termux/termux-packages/tree/master/packages/starship) | `pkg install starship` |
2022-02-07 15:53:55 +01:00
</details>
2022-02-07 15:53:55 +01:00
<details>
<summary>BSD</summary>
2022-04-18 09:48:28 -05:00
Instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes:
2021-06-20 14:10:36 -04:00
2022-02-07 15:53:55 +01:00
| Distribuição | Repositório | Instruções |
| -------------- | -------------------------------------------------------- | --------------------------------- |
| **_Qualquer_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| FreeBSD | [FreshPorts](https://www.freshports.org/shells/starship) | `pkg install starship` |
| NetBSD | [pkgsrc](https://pkgsrc.se/shells/starship) | `pkgin install starship` |
2021-06-20 14:10:36 -04:00
2022-02-07 15:53:55 +01:00
</details>
2021-06-20 14:10:36 -04:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Linux</summary>
2022-04-18 09:48:28 -05:00
Instale a versão mais recente no seu sistema:
2022-02-07 15:53:55 +01:00
```sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh
2022-02-07 15:53:55 +01:00
```
2022-04-18 09:48:28 -05:00
Ou instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes:
2022-02-07 15:53:55 +01:00
| Distribuição | Repositório | Instruções |
| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| **_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` |
| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
2023-07-30 09:29:01 -04:00
| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` |
2022-02-07 15:53:55 +01:00
| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` <br /> `dnf install starship` |
2025-04-28 00:53:07 +09:00
| Debian 13+ | [Debian Main](https://sources.debian.org/src/starship/1.22.1-1/) | `apt install starship` |
2025-10-25 20:33:44 +09:00
| Fedora 40+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` <br /> `dnf install starship` |
2022-02-07 15:53:55 +01:00
| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
| Manjaro | | `pacman -S starship` |
2025-10-25 20:33:44 +09:00
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/st/starship/package.nix) | `nix-env -iA nixpkgs.starship` |
2023-12-29 03:07:36 +09:00
| openSUSE | [OSS](https://software.opensuse.org/package/starship) | `zypper in starship` |
2025-04-28 00:53:07 +09:00
| Ubuntu 25.04+ | [Ubuntu Universe](https://packages.ubuntu.com/source/plucky/starship) | `apt install starship` |
2022-02-07 15:53:55 +01:00
| Void Linux | [Void Linux Packages](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship) | `xbps-install -S starship` |
2022-02-07 15:53:55 +01:00
</details>
2022-02-07 15:53:55 +01:00
<details>
<summary>macOS</summary>
2022-04-18 09:48:28 -05:00
Instale a versão mais recente no seu sistema:
2022-02-07 15:53:55 +01:00
```sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh
2022-02-07 15:53:55 +01:00
```
2022-04-18 09:48:28 -05:00
Ou instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes:
2022-02-07 15:53:55 +01:00
| Repositório | Instruções |
| -------------------------------------------------------- | --------------------------------------- |
| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
| [Homebrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
| [MacPorts](https://ports.macports.org/port/starship) | `port install starship` |
2022-02-07 15:53:55 +01:00
</details>
2022-02-07 15:53:55 +01:00
<details>
<summary>Windows</summary>
2023-06-06 10:10:23 -04:00
Instale a ultima versão para o seu sistema usando MSI-installer a partir da [seção de lançamentos](https://github.com/starship/starship/releases/latest).
2022-06-16 08:48:50 -04:00
2022-04-18 09:48:28 -05:00
Instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes:
2022-06-26 18:29:51 -04:00
| Repositório | Instruções |
| -------------------------------------------------------------------------------------------- | --------------------------------------- |
| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| [Chocolatey](https://community.chocolatey.org/packages/starship) | `choco install starship` |
| [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
| [Scoop](https://github.com/ScoopInstaller/Main/blob/master/bucket/starship.json) | `scoop install starship` |
| [winget](https://github.com/microsoft/winget-pkgs/tree/master/manifests/s/Starship/Starship) | `winget install --id Starship.Starship` |
2022-02-07 15:53:55 +01:00
</details>
2023-06-06 10:10:23 -04:00
### 2º passo. Configure seu shell para usar Starship
2022-04-18 09:48:28 -05:00
Configure seu shell para inicializar o starship. Selecione o seu na lista abaixo:
2022-02-07 15:53:55 +01:00
<details>
<summary>Bash</summary>
2022-02-07 15:53:55 +01:00
Adicione o seguinte comando no final do arquivo `~/.bashrc`:
2022-02-07 15:53:55 +01:00
```sh
eval "$(starship init bash)"
```
2022-02-07 15:53:55 +01:00
</details>
2022-02-07 15:53:55 +01:00
<details>
<summary>Cmd</summary>
2022-04-18 09:48:28 -05:00
Você precisa do [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) com Cmd. Crie um arquivo neste caminho `%LocalAppData%\clink\starship.lua` com o seguinte conteúdo:
2022-02-07 15:53:55 +01:00
```lua
load(io.popen('starship init cmd'):read("*a"))()
```
2022-02-07 15:53:55 +01:00
</details>
2022-02-07 15:53:55 +01:00
<details>
<summary>Elvish</summary>
2025-10-25 20:33:44 +09:00
Add the following to the end of `~/.config/elvish/rc.elv` (`%AppData%\elvish\rc.elv` on Windows):
2022-02-07 15:53:55 +01:00
```sh
eval (starship init elvish)
```
2025-10-25 20:33:44 +09:00
Nota: Somente Elvish v0.18+ é suportado. For elvish versions prior to v0.21.0 the config file might instead be `~/.elvish/rc.elv`
2022-02-07 15:53:55 +01:00
</details>
2022-02-07 15:53:55 +01:00
<details>
<summary>Fish</summary>
2022-02-07 15:53:55 +01:00
Adicione o seguinte comando no final do arquivo `~/.config/fish/config.fish`:
2022-02-07 15:53:55 +01:00
```fish
starship init fish | source
```
2022-02-07 15:53:55 +01:00
</details>
2021-02-06 12:46:15 -05:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Ion</summary>
2021-02-06 12:46:15 -05:00
2022-02-07 15:53:55 +01:00
Adicione o seguinte comando no final do arquivo `~/.config/ion/initrc`:
2021-02-06 12:46:15 -05:00
2022-02-07 15:53:55 +01:00
```sh
eval $(starship init ion)
```
2021-02-06 12:46:15 -05:00
2022-02-07 15:53:55 +01:00
</details>
2021-02-06 12:46:15 -05:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Nushell</summary>
2021-03-15 13:18:42 -04:00
2025-01-12 00:23:14 +09:00
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
2021-03-15 13:18:42 -04:00
2022-03-24 15:47:11 -05:00
```sh
2025-01-12 00:23:14 +09:00
mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
2022-02-07 15:53:55 +01:00
```
2021-03-15 13:18:42 -04:00
2025-04-28 00:53:07 +09:00
Nota: Somente o Nushell v0.96+ é suportado
2022-03-24 15:47:11 -05:00
2022-02-07 15:53:55 +01:00
</details>
2021-03-15 13:18:42 -04:00
2022-02-07 15:53:55 +01:00
<details>
<summary>PowerShell</summary>
2021-03-15 13:18:42 -04:00
2022-04-18 09:48:28 -05:00
Adicione o seguinte no final da sua configuração PowerShell (encontre executando `$PROFILE`):
2021-07-10 17:15:23 -04:00
2022-02-07 15:53:55 +01:00
```powershell
Invoke-Expression (&starship init powershell)
```
2021-08-14 09:24:51 -04:00
2022-02-07 15:53:55 +01:00
</details>
2021-08-14 09:24:51 -04:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Tcsh</summary>
2021-08-14 09:24:51 -04:00
2022-02-07 15:53:55 +01:00
Adicione ao final do arquivo `~/.tcshrc`:
2021-08-14 09:24:51 -04:00
2022-02-07 15:53:55 +01:00
```sh
eval `starship init tcsh`
```
2021-08-14 09:24:51 -04:00
2022-02-07 15:53:55 +01:00
</details>
2022-01-15 17:08:31 -05:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Xonsh</summary>
2022-01-15 17:08:31 -05:00
2022-02-07 15:53:55 +01:00
Adicione o seguinte ao final do arquivo `~/.xonshrc`:
2022-01-15 17:08:31 -05:00
2022-02-07 15:53:55 +01:00
```python
execx($(starship init xonsh))
```
2022-01-15 17:08:31 -05:00
2022-02-07 15:53:55 +01:00
</details>
2022-01-15 17:08:31 -05:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Zsh</summary>
2021-07-10 17:15:23 -04:00
2022-02-07 15:53:55 +01:00
Adicione o seguinte comando no final do arquivo `~/.zshrc`:
2021-07-10 17:15:23 -04:00
2022-02-07 15:53:55 +01:00
```sh
eval "$(starship init zsh)"
```
</details>
### 3º passo. Configurar o Starship
2022-04-18 09:48:28 -05:00
Inicie uma nova instância de shell e você deverá ver seu belo novo prompt de shell. Se você estiver feliz com as configurações padrões, aproveite!
2022-02-07 15:53:55 +01:00
2022-04-18 09:48:28 -05:00
Se você estiver procurando personalizar ainda mais a Starship:
2022-02-07 15:53:55 +01:00
- **[Configuração](https://starship.rs/config/)** saiba como configurar o Starship para ajustar seu prompt ao seu gosto
- **[Predefinições](https://starship.rs/presets/)** - seja inspirado nas configurações pré-construídas pelos outros
2021-07-10 17:15:23 -04:00
## 🤝 Contribuindo
2026-04-18 20:11:45 +09:00
Nós estamos sempre procurando contribuidores de **todos os níveis de conhecimento**! If you're looking to ease your way into the project, try out a [good first issue](https://github.com/starship/starship/issues?q=state%3Aopen%20label%3A%22%F0%9F%8C%B1%20good%20first%20issue%22).
2022-12-14 00:50:29 +09:00
Se você é fluente em um idioma diferente do inglês, agradecemos qualquer ajuda para manter nossos documentos traduzidos e atualizados em outros idiomas. Se você quiser ajudar, as traduções podem ser contribuídas no [Crowdin do Starship](https://translate.starship.rs/).
2021-01-03 03:56:07 -05:00
2022-12-14 00:50:29 +09:00
Se você estiver interessado em ajudar a contribuir com starship, dê uma olhada em nosso [Guia de Contribuição](https://github.com/starship/starship/blob/master/CONTRIBUTING.md). Além disso, sinta-se à vontade para entrar no nosso [servidor do Discord](https://discord.gg/8Jzqu3T) e diga oi. 👋
## 💭 Inspirado por
2022-12-14 00:50:29 +09:00
Por favor, confira esses trabalhos anteriores que ajudaram a inspirar a criação do starship. 🙏
2022-02-07 15:53:55 +01:00
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** Um prompt ZSH para astronautas.
2022-02-07 15:53:55 +01:00
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** Tema robbyrussell para prompt em JavaScript.
2022-02-07 15:53:55 +01:00
- **[reujab/silver](https://github.com/reujab/silver)** Um prompt personalizável com ícones do tipo powerline.
2022-12-05 15:54:12 +09:00
## ❤️ Patrocinadores
Apoie este projeto [tornando-se um patrocinador](https://github.com/sponsors/starship). O seu nome ou logotipo aparecerá aqui com um link para o seu site.
2024-10-18 03:20:57 +09:00
## 🔒 Code Signing Policy
Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org).
Code Signing Roles:
- Reviewers: [Astronauts](https://github.com/orgs/starship/teams/astronauts)
- Approvers and Authors: [Mission Control](https://github.com/orgs/starship/teams/mission-control)
2025-10-25 20:33:44 +09:00
Este programa nāo transferirá qualquer informação para outros sistemas em rede, a menos que seja especificamente solicitado pelo usuário ou a pessoa que o esteja instalando ou operando.
2024-05-16 02:07:00 +09:00
<p align="center">
<br>
2022-04-18 09:48:28 -05:00
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Ícone de foguete do Starship">
</p>
## 📝 Licença
2022-12-05 15:54:12 +09:00
Copyright © 2019-presente, [Colaboradores Starship](https://github.com/starship/starship/graphs/contributors).<br /> Este projeto é licenciado pelo [ISC](https://github.com/starship/starship/blob/master/LICENSE).