2022-12-12 05:14:19 +00:00
< p align = "center" >
< img
width="400"
src="https://raw.githubusercontent.com/starship/starship/master/media/logo.png"
2023-01-31 16:14:38 +00:00
alt="Starship – kryssplattform ledetekst"
2022-12-12 05:14:19 +00:00
/>
< / p >
< p align = "center" >
< a href = "https://github.com/starship/starship/actions"
>< img
2023-01-31 16:14:38 +00:00
src="https://img.shields.io/github/actions/workflow/status/starship/starship/workflow.yml?branch=master& label=workflow& style=flat-square"
alt="Github Handlinger arbeidsflyt status"
2022-12-12 05:14:19 +00:00
/>< / a >
< a href = "https://crates.io/crates/starship"
>< img
src="https://img.shields.io/crates/v/starship?style=flat-square"
2023-01-31 16:14:38 +00:00
alt="Crates.io versjon"
2022-12-12 05:14:19 +00:00
/>< / a >
< a href = "https://repology.org/project/starship/versions"
>< img
src="https://img.shields.io/repology/repositories/starship?label=in%20repositories& style=flat-square"
2023-01-31 16:14:38 +00:00
alt="Pakkestatus" />< /a
2022-12-12 05:14:19 +00:00
>< br / >
< a href = "https://discord.gg/starship"
>< img
src="https://img.shields.io/discord/567163873606500352?label=discord& logoColor=white& style=flat-square"
2023-01-31 16:14:38 +00:00
alt="Chat på Discord"
2022-12-12 05:14:19 +00:00
/>< / a >
< a href = "https://twitter.com/StarshipPrompt"
>< img
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
2023-01-31 16:14:38 +00:00
alt="Følg @StarshipPrompt på Twitter"
2022-12-12 05:14:19 +00:00
/>< / a >
< / p >
< p align = "center" >
2023-01-31 16:14:38 +00:00
< a href = "https://starship.rs" > Nettside< / a >
2022-12-12 05:14:19 +00:00
·
2023-01-31 16:14:38 +00:00
< a href = "#🚀-installation" > Installasjon< / a >
2022-12-12 05:14:19 +00:00
·
2023-01-31 16:14:38 +00:00
< a href = "https://starship.rs/config/" > Konfigurasjon< / a >
2022-12-12 05:14:19 +00:00
< / 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"
2023-01-31 16:14:38 +00:00
alt="Engelsk"
2022-12-12 05:14:19 +00:00
/>< / a >
< a
href="https://github.com/starship/starship/blob/master/docs/de-DE/guide/README.md"
>< img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-de.png"
2023-01-31 16:14:38 +00:00
alt="Tysk"
2022-12-12 05:14:19 +00:00
/>< / a >
< a
href="https://github.com/starship/starship/blob/master/docs/es-ES/guide/README.md"
>< img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-es.png"
2023-01-31 16:14:38 +00:00
alt="Spansk"
2022-12-12 05:14:19 +00:00
/>< / a >
< a
href="https://github.com/starship/starship/blob/master/docs/fr-FR/guide/README.md"
>< img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png"
2023-01-31 16:14:38 +00:00
alt="Fransk"
2022-12-12 05:14:19 +00:00
/>< / a >
< 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"
2023-01-31 16:14:38 +00:00
alt="Bahasa-indonesisk"
2022-12-12 05:14:19 +00:00
/>< / a >
< 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"
2023-01-31 16:14:38 +00:00
alt="Italiensk"
2022-12-12 05:14:19 +00:00
/>< / a >
< a
href="https://github.com/starship/starship/blob/master/docs/ja-JP/guide/README.md"
>< img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-jp.png"
2023-01-31 16:14:38 +00:00
alt="Japansk"
2022-12-12 05:14:19 +00:00
/>< / a >
< a
href="https://github.com/starship/starship/blob/master/docs/pt-BR/guide/README.md"
>< img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-br.png"
2023-01-31 16:14:38 +00:00
alt="Portugisisk - Brasil"
2022-12-12 05:14:19 +00:00
/>< / a >
< a
href="https://github.com/starship/starship/blob/master/docs/ru-RU/guide/README.md"
>< img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-ru.png"
2023-01-31 16:14:38 +00:00
alt="Russisk"
2022-12-12 05:14:19 +00:00
/>< / a >
< a
href="https://github.com/starship/starship/blob/master/docs/vi-VN/guide/README.md"
>< img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-vn.png"
2023-01-31 16:14:38 +00:00
alt="Vietnamesisk"
2022-12-12 05:14:19 +00:00
/>< / a >
< a
href="https://github.com/starship/starship/blob/master/docs/zh-CN/guide/README.md"
>< img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-cn.png"
2023-01-31 16:14:38 +00:00
alt="Kinesisk - forenklet"
2022-12-12 05:14:19 +00:00
/>< / a >
< 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"
2023-01-31 16:14:38 +00:00
alt="Kinesisk - tradisjonelt"
2022-12-12 05:14:19 +00:00
/>< / a >
< / p >
[![SWUbanner ](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg )](https://vshymanskyy.github.io/StandWithUkraine)
< h1 > < / h1 >
< img
src="https://raw.githubusercontent.com/starship/starship/master/media/demo.gif"
2023-01-31 16:14:38 +00:00
alt="Starship med iTerm2 og Snazzy tema"
2022-12-12 05:14:19 +00:00
width="50%"
align="right"
/>
2023-01-31 16:14:38 +00:00
**Minimal, blendende rask og uendelig tilpasningsdyktig ledetekst for alle skall! **
2022-12-12 05:14:19 +00:00
2023-01-31 16:14:38 +00:00
- **Fast:** Det er kjapt - _virkelig_ kjapt! 🚀
- **Tilpassbart:** konfigurer hvert aspekt av din ledetekst.
- **Universelt:** fungerer med ethvert skall uansett operativsystem.
- **Intelligent:** viser relevant informasjon øyeblikkelig.
- **Funksjonsrikt:** støtter alle dine favorittverktøy.
- **Lett:** raskt å installere - start å bruke det på minutter.
2022-12-12 05:14:19 +00:00
< p align = "center" >
2023-01-31 16:14:38 +00:00
< a href = "https://starship.rs/config/" > < strong > Utforsk Starship dokumentasjon ▶< / strong > < / a >
2022-12-12 05:14:19 +00:00
< / p >
< a name = "🚀-installation" > < / a >
2023-01-31 16:14:38 +00:00
## 🚀 Installasjon
2022-12-12 05:14:19 +00:00
2023-01-31 16:14:38 +00:00
### Nødvendig forutsetninger
2022-12-12 05:14:19 +00:00
2023-02-21 03:40:15 +00:00
- A [Nerd Font ](https://www.nerdfonts.com/ ) installed and enabled in your terminal (for example, try the [FiraCode Nerd Font ](https://www.nerdfonts.com/font-downloads )).
2022-12-12 05:14:19 +00:00
2023-01-31 16:14:38 +00:00
### Steg 1. Installer Starship
2022-12-12 05:14:19 +00:00
2023-01-31 16:14:38 +00:00
Velg operativsystemet ditt fra listen nedenfor for å se installasjonsinstrukser:
2022-12-12 05:14:19 +00:00
< details >
< summary > Android< / summary >
2023-01-31 16:14:38 +00:00
Installer Starship ved å bruke en av følgende installasjonsprogrammene:
2022-12-12 05:14:19 +00:00
2023-01-31 16:14:38 +00:00
| Repository | Instruksjoner |
2022-12-12 05:14:19 +00:00
| --------------------------------------------------------------------------------- | ---------------------- |
| [Termux ](https://github.com/termux/termux-packages/tree/master/packages/starship ) | `pkg install starship` |
< / details >
< details >
< summary > BSD< / summary >
2023-01-31 16:14:38 +00:00
Installer Starship ved å bruke en av følgende installasjonsprogrammene:
2022-12-12 05:14:19 +00:00
2023-01-31 16:14:38 +00:00
| Distribusjonen | Repository | Instruksjoner |
| -------------- | -------------------------------------------------------- | --------------------------------- |
| **_Noen_** | ** [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` |
2022-12-12 05:14:19 +00:00
< / details >
< details >
< summary > Linux< / summary >
Install the latest version for your system:
```sh
curl -sS https://starship.rs/install.sh | sh
```
Alternatively, install Starship using any of the following package managers:
2023-01-31 16:14:38 +00:00
| Distribusjonen | Repository | Instruksjoner |
2022-12-12 05:14:19 +00:00
| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
2023-01-31 16:14:38 +00:00
| **_Noen_** | ** [crates.io ](https://crates.io/crates/starship )** | `cargo install starship --locked` |
| _Noen_ | [conda-forge ](https://anaconda.org/conda-forge/starship ) | `conda install -c conda-forge starship` |
| _Noen_ | [Linuxbrew ](https://formulae.brew.sh/formula/starship ) | `brew install starship` |
| _Noen_ | [Snapcraft ](https://snapcraft.io/starship ) | `snap install starship` |
2022-12-12 05:14:19 +00:00
| Alpine Linux 3.13+ | [Alpine Linux Packages ](https://pkgs.alpinelinux.org/packages?name=starship ) | `apk add starship` |
| Arch Linux | [Arch Linux Community ](https://archlinux.org/packages/community/x86_64/starship ) | `pacman -S starship` |
| CentOS 7+ | [Copr ](https://copr.fedorainfracloud.org/coprs/atim/starship ) | `dnf copr enable atim/starship` < br /> `dnf install starship` |
| Gentoo | [Gentoo Packages ](https://packages.gentoo.org/packages/app-shells/starship ) | `emerge app-shells/starship` |
| Manjaro | | `pacman -S starship` |
| NixOS | [nixpkgs ](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix ) | `nix-env -iA nixpkgs.starship` |
| Void Linux | [Void Linux Packages ](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship ) | `xbps-install -S starship` |
< / details >
< details >
< summary > macOS< / summary >
Install the latest version for your system:
```sh
curl -sS https://starship.rs/install.sh | sh
```
Alternatively, install Starship using any of the following package managers:
2023-01-31 16:14:38 +00:00
| Repository | Instruksjoner |
2022-12-12 05:14:19 +00:00
| -------------------------------------------------------- | --------------------------------------- |
| ** [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` |
< / details >
< details >
< summary > Windows< / summary >
Install the latest version for your system with the MSI-installers from the [releases section ](https://github.com/starship/starship/releases/latest ).
2023-01-31 16:14:38 +00:00
Installer Starship ved å bruke en av følgende installasjonsprogrammene:
2022-12-12 05:14:19 +00:00
2023-01-31 16:14:38 +00:00
| Repository | Instruksjoner |
2022-12-12 05:14:19 +00:00
| -------------------------------------------------------------------------------------------- | --------------------------------------- |
| ** [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` |
< / details >
2023-01-31 16:14:38 +00:00
### Steg 2. Sett opp skallet ditt for å bruke Starship
2022-12-12 05:14:19 +00:00
2023-01-31 16:14:38 +00:00
Konfigurer skallet ditt til å initialisere starship. Velg din fra listen nedenfor:
2022-12-12 05:14:19 +00:00
< details >
< summary > Bash< / summary >
2023-01-31 16:14:38 +00:00
Legg til følgende på slutten av `~/.bashrc` :
2022-12-12 05:14:19 +00:00
```sh
eval "$(starship init bash)"
```
< / details >
< details >
< summary > Cmd< / summary >
2023-01-31 16:14:38 +00:00
Du må bruke [Clink ](https://chrisant996.github.io/clink/clink.html ) (v1.2.30+) med Cmd. Lag en fil på følgende lokasjonen `%LocalAppData%\clink\starship.lua` med dette innholdet:
2022-12-12 05:14:19 +00:00
```lua
load(io.popen('starship init cmd'):read("*a"))()
```
< / details >
< details >
2023-01-31 16:14:38 +00:00
< summary > Elvisk< / summary >
2022-12-12 05:14:19 +00:00
2023-01-31 16:14:38 +00:00
Legg til følgende i slutten av `~/.elvish/rc.elv` :
2022-12-12 05:14:19 +00:00
```sh
eval (starship init elvish)
```
2023-01-31 16:14:38 +00:00
Merk: Bare Alvisk v0.18+ støttes
2022-12-12 05:14:19 +00:00
< / details >
< details >
< summary > Fish< / summary >
2023-01-31 16:14:38 +00:00
Legg til følgende i slutten av `~/.config/fish/config.fish` :
2022-12-12 05:14:19 +00:00
```fish
starship init fish | source
```
< / details >
< details >
< summary > Ion< / summary >
2023-01-31 16:14:38 +00:00
Legg til følgende i slutten av `~/.config/ion/initrc` :
2022-12-12 05:14:19 +00:00
```sh
eval $(starship init ion)
```
< / details >
< details >
< summary > Nushell< / summary >
2023-01-31 16:14:38 +00:00
Legg til følgende i slutten av Nushell env filen (finn den ved å kjøre `$nu.env-path` i Nushell):
2022-12-12 05:14:19 +00:00
```sh
mkdir ~/.cache/starship
2023-01-31 16:14:38 +00:00
starship init nu | save -f ~/.cache/starship/init.nu
2022-12-12 05:14:19 +00:00
```
2023-01-31 16:14:38 +00:00
Og legg følgende til slutten av Nushell konfigurasjonen (finn det ved å kjøre `$nu.config-path` ):
2022-12-12 05:14:19 +00:00
```sh
source ~/.cache/starship/init.nu
```
2023-01-31 16:14:38 +00:00
Merk: Bare Nushell v0.73+ støttes
2022-12-12 05:14:19 +00:00
< / details >
< details >
< summary > PowerShell< / summary >
2023-01-31 16:14:38 +00:00
Legg til følgende i slutten av PowerShell-konfigurasjonen (finn den ved å kjøre `$PROFILE` ):
2022-12-12 05:14:19 +00:00
```powershell
Invoke-Expression (& starship init powershell)
```
< / details >
< details >
< summary > Tcsh< / summary >
2023-01-31 16:14:38 +00:00
Legg til følgende i slutten av `~/.tcshrc` :
2022-12-12 05:14:19 +00:00
```sh
eval `starship init tcsh`
```
< / details >
< details >
< summary > Xonsh< / summary >
Add the following to the end of `~/.xonshrc` :
```python
execx($(starship init xonsh))
```
< / details >
< details >
< summary > Zsh< / summary >
Add the following to the end of `~/.zshrc` :
```sh
eval "$(starship init zsh)"
```
< / details >
2023-01-31 16:14:38 +00:00
### Steg 3. Configure Starship
2022-12-12 05:14:19 +00:00
Start a new shell instance, and you should see your beautiful new shell prompt. If you're happy with the defaults, enjoy!
If you're looking to further customize Starship:
- **[Configuration](https://starship.rs/config/)** – learn how to configure Starship to tweak your prompt to your liking
- **[Presets](https://starship.rs/presets/)** – get inspired by the pre-built configuration of others
## 🤝 Contributing
We are always looking for contributors of **all skill levels** ! If you're looking to ease your way into the project, try out a [good first issue ](https://github.com/starship/starship/labels/🌱%20good%20first%20issue ).
If you are fluent in a non-English language, we greatly appreciate any help keeping our docs translated and up-to-date in other languages. If you would like to help, translations can be contributed on the [Starship Crowdin ](https://translate.starship.rs/ ).
If you are interested in helping contribute to starship, please take a look at our [Contributing Guide ](https://github.com/starship/starship/blob/master/CONTRIBUTING.md ). Also, feel free to drop into our [Discord server ](https://discord.gg/8Jzqu3T ) and say hi. 👋
## 💭 Inspired By
Please check out these previous works that helped inspire the creation of starship. 🙏
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – A ZSH prompt for astronauts.
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** – Cross-shell robbyrussell theme written in JavaScript.
- **[reujab/silver](https://github.com/reujab/silver)** – A cross-shell customizable powerline-like prompt with icons.
## ❤️ Sponsors
Support this project by [becoming a sponsor ](https://github.com/sponsors/starship ). Your name or logo will show up here with a link to your website.
**Supporter Tier**
2023-01-31 16:14:38 +00:00
- [Appwrite ](https://appwrite.io/ )
2022-12-12 05:14:19 +00:00
< p align = "center" >
< br >
< img width = "100" src = "https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt = "Starship rocket icon" >
< / p >
## 📝 License
Copyright © 2019-present, [Starship Contributors ](https://github.com/starship/starship/graphs/contributors ).< br /> This project is [ISC ](https://github.com/starship/starship/blob/master/LICENSE ) licensed.