2021-01-03 03:56:07 -05:00
---
home: true
heroImage: /logo.svg
heroText:
2021-09-21 09:36:29 -04:00
tagline: Minimalny, szybki i nieskończenie konfigurowalny wiersz poleceń dla dowolnej powłoki!
2021-01-03 03:56:07 -05:00
actionText: Get Started →
actionLink: ./guide/
features:
-
2021-09-21 09:36:29 -04:00
title: Kompatybilność przede wszystkim
2021-01-03 03:56:07 -05:00
details: Works on the most common shells on the most common operating systems. Use it everywhere!
-
2021-09-21 09:36:29 -04:00
title: Napędzany językiem Rust
2021-01-03 03:56:07 -05:00
details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
-
2021-09-21 09:36:29 -04:00
title: Konfigurowalny
2021-01-03 03:56:07 -05:00
details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be.
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
#Used for the description meta tag, for SEO
metaTitle: "Starship: Cross-Shell Prompt"
2022-01-15 17:08:31 -05:00
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
2021-01-03 03:56:07 -05: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-09-21 09:36:29 -04:00
### Wymagania wstępne
2021-04-22 17:12:09 -04:00
- A [Nerd Font ](https://www.nerdfonts.com/ ) installed and enabled in your terminal.
2021-01-03 03:56:07 -05:00
### Quick Install
2021-09-21 09:36:29 -04:00
1. Zainstaluj plik programu **starship ** :
2021-01-03 03:56:07 -05:00
2021-09-21 09:36:29 -04:00
#### Instalacja najnowszej wersji
2021-01-03 03:56:07 -05:00
With Shell:
```sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh
2021-01-03 03:56:07 -05:00
` ``
2022-03-08 21:11:36 -05:00
2021-09-21 09:36:29 -04:00
Aby zaktualizować Starship, uruchom ponownie powyższy skrypt. Obecna wersja zostanie zastąpiona nową, bez modyfikowania konfiguracji Starship.
2021-01-03 03:56:07 -05:00
2021-09-21 09:36:29 -04:00
#### Instalacja za pomocą menedżera pakietów
2021-01-03 03:56:07 -05:00
With [Homebrew](https://brew.sh/):
` ``sh
brew install starship
` ``
2021-09-21 09:36:29 -04:00
Za pomocą [Scoop](https://scoop.sh):
2021-01-03 03:56:07 -05:00
` ``powershell
scoop install starship
` ``
2021-09-21 09:36:29 -04:00
1. Dodaj skrypt inicjalizacyjny do konfiguracji twojej powłoki:
2021-01-03 03:56:07 -05:00
#### Bash
2021-09-21 09:36:29 -04:00
Dodaj na koniec pliku ` ~/.bashrc`:
2021-01-03 03:56:07 -05:00
` ``sh
# ~/.bashrc
eval "$(starship init bash)"
` ``
#### Fish
2021-09-21 09:36:29 -04:00
Dodaj na koniec pliku ` ~/.config/fish/config.fish`:
2021-01-03 03:56:07 -05:00
` ``sh
# ~/.config/fish/config.fish
starship init fish | source
` ``
#### Zsh
2021-09-21 09:36:29 -04:00
Dodaj na koniec pliku ` ~/.zshrc`:
2021-01-03 03:56:07 -05:00
` ``sh
# ~/.zshrc
eval "$(starship init zsh)"
` ``
#### Powershell
2021-11-07 18:07:39 +00:00
Dodaj na koniec pliku ` Microsoft.PowerShell_profile.ps1`. Możesz sprawdzić lokalizację tego pliku odczytując zmienną środowiskową ` $PROFILE` w PowerShell. Zazwyczaj jest to ` ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` lub ` ~/.config/powershell/Microsoft.PowerShell_profile.ps1` na -Nixie.
2021-01-03 03:56:07 -05:00
` ``sh
Invoke-Expression (&starship init powershell)
` ``
#### Ion
2021-09-21 09:36:29 -04:00
Dodaj na koniec pliku ` ~/.config/ion/initrc`:
2021-01-03 03:56:07 -05:00
` ``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
::: warning
Only elvish v0.18 or higher is supported.
:::
2021-02-06 12:46:15 -05:00
2021-09-21 09:36:29 -04:00
Dodaj na koniec pliku ` ~/.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-09-21 09:36:29 -04:00
Dodaj na koniec pliku ` ~/.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
2021-07-10 17:15:23 -04:00
2022-05-24 17:19:44 -04:00
::: warning
This will change in the future. Only Nushell v0.61+ is supported.
:::
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-03-24 15:47:11 -05:00
And add the following to the end of your Nushell configuration (find it by running ` $nu.config-path`):
` ``sh
source ~/.cache/starship/init.nu
` ``
2021-08-14 09:24:51 -04:00
#### Xonsh
2021-11-07 18:07:39 +00:00
Dodaj na koniec pliku ` ~/.xonshrc`:
2021-08-14 09:24:51 -04:00
` ``sh
# ~/.xonshrc
execx($(starship init xonsh))
` ``
2022-01-15 17:08:31 -05:00
#### Cmd
You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Add the following to a file ` starship.lua` and place this file in Clink scripts directory:
` ``lua
-- starship.lua
load(io.popen('starship init cmd'):read("*a"))()
` ``