2022-12-14 00:50:29 +09:00
# Instalação avançada
2021-01-07 18:08:18 -05:00
2022-03-08 21:11:36 -05:00
Para instalar o starship, você precisa de duas coisas:
2021-01-07 18:08:18 -05:00
2021-06-20 14:10:36 -04:00
1. O binário do **Starship ** em seu computador
1. Altere seu shell para usar o binário do starship como seu prompt alterando os scripts init
2021-01-07 18:08:18 -05:00
2024-03-03 17:55:30 +01:00
Para a maioria dos usuários as instruções na [pagina principal ](../guide/#🚀-installation ) irá funcionar perfeitamente. No entanto para algumas plataformas mais especificas, instruções diferentes são necessárias.
2021-01-07 18:08:18 -05:00
2021-06-20 14:10:36 -04:00
Existem tantas plataformas que elas não cabem no arquivo README.md principal, então aqui estão algumas instruções de instalação para outras plataformas da comunidade. A sua não está aqui? Por favor, adicione-o aqui se você descobrir!
2021-03-15 13:18:42 -04:00
## [Chocolatey](https://chocolatey.org)
### Pré-requisitos
2021-06-20 14:10:36 -04:00
Vá para a [pagina de instalação do Chocolatey ](https://chocolatey.org/install ) e siga as instruções para instalar o Chocolatey.
2021-03-15 13:18:42 -04:00
2021-06-20 14:10:36 -04:00
### Instalação
2021-03-15 13:18:42 -04:00
``` powershell
choco install starship
```
2021-02-21 14:13:18 -05:00
## [termux](https://termux.com)
2021-03-15 13:18:42 -04:00
2021-02-21 14:13:18 -05:00
### Pré-requisitos
2021-03-15 13:18:42 -04:00
2021-02-21 14:13:18 -05:00
``` sh
pkg install getconf
```
2021-06-20 14:10:36 -04:00
### Instalação
2021-03-15 13:18:42 -04:00
2021-02-21 14:13:18 -05:00
``` sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir /data/data/com.termux/files/usr/bin
2021-02-21 14:13:18 -05:00
```
2021-01-07 18:08:18 -05:00
2021-11-07 18:07:39 +00:00
## [Funtoo Linux](https://www.funtoo.org/Welcome)
### Instalação
2022-01-15 17:08:31 -05:00
No Funtoo Linux, o starship pode ser instalado a partir do [core-kit ](https://github.com/funtoo/core-kit/tree/1.4-release/app-shells/starship ) via Portage:
2021-11-07 18:07:39 +00:00
``` sh
emerge app-shells/starship
```
2021-01-07 18:08:18 -05:00
## [Nix](https://nixos.wiki/wiki/Nix)
2021-12-21 00:05:59 +03:00
### Obtendo o Binário
2021-01-07 18:08:18 -05:00
2021-06-20 14:10:36 -04:00
#### Imperativamente
2021-01-07 18:08:18 -05:00
``` sh
nix-env -iA nixos.starship
```
2021-06-20 14:10:36 -04:00
#### Declarativo, usuário único, via [home-manager](https://github.com/nix-community/home-manager)
2021-01-07 18:08:18 -05:00
2021-12-21 00:05:59 +03:00
Ative o modulo `programs.starship` em seu arquivo `home.nix` , e adicione suas configurações
2021-03-15 13:18:42 -04:00
``` nix
{
programs . starship = {
enable = true ;
2022-05-24 17:19:44 -04:00
# Configuração gravada em ~/.config/starship.toml
2021-03-15 13:18:42 -04:00
settings = {
# add_newline = false;
# character = {
# success_symbol = "[➜](bold green)";
# error_symbol = "[➜](bold red)";
# };
# package.disabled = true;
} ;
} ;
}
```
2021-12-21 00:05:59 +03:00
então execute
2021-01-07 18:08:18 -05:00
``` sh
home-manager switch
```
2021-06-20 14:10:36 -04:00
#### Declarativo, em todo o sistema com NixOS
2021-01-07 18:08:18 -05:00
2021-12-21 00:05:59 +03:00
Adicione `pkgs.starship` em `environment.systemPackages` no arquivo `configuration.nix` , então execute
2021-01-07 18:08:18 -05:00
``` sh
sudo nixos-rebuild switch
```