Skip to content

Starship – Cross-shell prompt

Status do workflow Actions do GitHubVersão no Crates.ioStatus do pacote
Chat no DiscordSiga o @StarshipPrompt no TwitterA favor da Ucrânia

Site · Instalação · Configuração

English   Deutsch   Español   Français   Bahasa Indonesia   Italiano   日本語   Português do Brasil   Русский   Українська   Tiếng Việt   简体中文   繁體中文

WARNING

The default branch has been renamed from master to main. If you have a local clone, update it by running:

sh
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

Starship com iTerm2 e o tema Snazzy

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.
  • Fácil: Instalação rápida – comece a usar em minutos.

Consulte a documentação  ▶

🚀 Instalação

Pré-requisitos

1º passo. Instalar o Starship

Selecione seu sistema operacional na lista abaixo para ver as instruções de instalação:

Android

Instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes:

RepositórioInstruções
Termuxpkg install starship
BSD

Instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes:

DistribuiçãoRepositórioInstruções
Qualquercrates.iocargo install starship --locked
FreeBSDFreshPortspkg install starship
NetBSDpkgsrcpkgin install starship
Linux

Instale a versão mais recente no seu sistema:

sh
curl -sS https://starship.rs/install.sh | sh

Ou instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes:

DistribuiçãoRepositórioInstruções
Qualquercrates.iocargo install starship --locked
Qualquerconda-forgeconda install -c conda-forge starship
QualquerLinuxbrewbrew install starship
Alpine Linux 3.13+Alpine Linux Packagesapk add starship
Arch LinuxArch Linux Extrapacman -S starship
CentOS 7+Coprdnf copr enable atim/starship
dnf install starship
Debian 13+Debian Mainapt install starship
Fedora 40+Coprdnf copr enable atim/starship
dnf install starship
GentooGentoo Packagesemerge app-shells/starship
Manjaropacman -S starship
NixOSnixpkgsnix-env -iA nixpkgs.starship
openSUSEOSSzypper in starship
Ubuntu 25.04+Ubuntu Universeapt install starship
Void LinuxVoid Linux Packagesxbps-install -S starship
macOS

Instale a versão mais recente no seu sistema:

sh
curl -sS https://starship.rs/install.sh | sh

Ou instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes:

RepositórioInstruções
crates.iocargo install starship --locked
Coprconda install -c conda-forge starship
Homebrewbrew install starship
MacPortsport install starship
Windows

Instale a ultima versão para o seu sistema usando MSI-installer a partir da seção de lançamentos.

Instale o Starship usando qualquer um dos seguintes gerenciadores de pacotes:

RepositórioInstruções
crates.iocargo install starship --locked
Chocolateychoco install starship
conda-forgeconda install -c conda-forge starship
Scoopscoop install starship
wingetwinget install --id Starship.Starship

2º passo. Configure seu shell para usar Starship

Configure seu shell para inicializar o starship. Selecione o seu na lista abaixo:

Bash

Adicione o seguinte comando no final do arquivo ~/.bashrc:

sh
eval "$(starship init bash)"
Cmd

Você precisa do Clink (v1.2.30+) com Cmd. Crie um arquivo neste caminho %LocalAppData%\clink\starship.lua com o seguinte conteúdo:

lua
load(io.popen('starship init cmd'):read("*a"))()
Elvish

Add the following to the end of ~/.config/elvish/rc.elv (%AppData%\elvish\rc.elv on Windows):

sh
eval (starship init elvish)

Nota: Somente Elvish v0.18+ é suportado. For elvish versions prior to v0.21.0 the config file might instead be ~/.elvish/rc.elv

Fish

Adicione o seguinte comando no final do arquivo ~/.config/fish/config.fish:

fish
starship init fish | source
Ion

Adicione o seguinte comando no final do arquivo ~/.config/ion/initrc:

sh
eval $(starship init ion)
Nushell

Add the following to the end of your Nushell configuration (find it by running $nu.config-path in Nushell):

sh
mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")

Nota: Somente o Nushell v0.96+ é suportado

PowerShell

Adicione o seguinte no final da sua configuração PowerShell (encontre executando $PROFILE):

powershell
Invoke-Expression (&starship init powershell)
Tcsh

Adicione ao final do arquivo ~/.tcshrc:

sh
eval `starship init tcsh`
Xonsh

Adicione o seguinte ao final do arquivo ~/.xonshrc:

python
execx($(starship init xonsh))
Zsh

Adicione o seguinte comando no final do arquivo ~/.zshrc:

sh
eval "$(starship init zsh)"

3º passo. Configurar o Starship

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!

Se você estiver procurando personalizar ainda mais a Starship:

  • Configuração – saiba como configurar o Starship para ajustar seu prompt ao seu gosto

  • Predefinições - seja inspirado nas configurações pré-construídas pelos outros

🤝 Contribuindo

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.

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.

Se você estiver interessado em ajudar a contribuir com starship, dê uma olhada em nosso Guia de Contribuição. Além disso, sinta-se à vontade para entrar no nosso servidor do Discord e diga oi. 👋

💭 Inspirado por

Por favor, confira esses trabalhos anteriores que ajudaram a inspirar a criação do starship. 🙏

❤️ Patrocinadores

Apoie este projeto tornando-se um patrocinador. O seu nome ou logotipo aparecerá aqui com um link para o seu site.

🔒 Code Signing Policy

Free code signing provided by SignPath.io, certificate by SignPath Foundation.

Code Signing Roles:

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.


Starship rocket icon

📝 Licença

Copyright © 2019-present, Starship Contributors.
Este projeto é licenciado pelo ISC.