2019-07-19 22:18:52 +02:00
---
2020-02-22 18:57:49 +01:00
home: true
2019-07-19 22:18:52 +02:00
heroImage: /logo.svg
2020-02-03 01:51:45 +01:00
heroText: null
2020-02-13 03:46:00 +01:00
tagline: The minimal, blazing-fast, and infinitely customizable prompt for any shell!
2019-07-19 22:18:52 +02:00
actionText: Get Started →
2020-02-03 01:51:45 +01:00
actionLink: ./guide/
features:
- title: Compatibility First
details: Works on the most common shells on the most common operating systems. Use it everywhere!
- title: Rust-Powered
details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
- title: Customizable
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.
2019-07-25 18:50:29 +02:00
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
2019-07-19 22:18:52 +02:00
2020-02-03 01:51:45 +01:00
# Used for the description meta tag, for SEO
2020-02-03 02:03:47 +01:00
metaTitle: "Starship: Cross-Shell Prompt"
2020-02-13 03:46:00 +01: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, and PowerShell.
2020-02-03 01:51:45 +01:00
---
2019-07-19 22:18:52 +02:00
2019-08-23 02:03:45 +02:00
< div class = "center" >
2019-12-09 21:50:22 +01:00
< video class = "demo-video" muted autoplay loop playsinline >
2019-08-23 02:03:45 +02:00
< source src = "/demo.webm" type = "video/webm" >
< source src = "/demo.mp4" type = "video/mp4" >
< / video >
< / div >
2021-04-08 22:16:11 +02:00
### Prerequisites
- A [Nerd Font ](https://www.nerdfonts.com/ ) installed and enabled in your terminal.
2019-07-19 22:18:52 +02:00
### Quick Install
1. Install the **starship** binary:
2019-12-17 22:46:43 +01:00
#### Install Latest Version
2019-08-18 19:45:36 +02:00
2019-12-17 22:48:17 +01:00
With Shell:
2019-08-18 19:45:36 +02:00
```sh
2021-04-08 19:42:45 +02:00
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
2019-08-18 19:45:36 +02:00
```
2021-04-01 16:38:51 +02:00
To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
2019-08-18 19:45:36 +02:00
2019-12-17 22:46:43 +01:00
#### Install via Package Manager
2019-08-18 19:45:36 +02:00
2019-12-17 22:48:17 +01:00
With [Homebrew ](https://brew.sh/ ):
2019-08-20 06:50:35 +02:00
```sh
2019-12-17 22:46:43 +01:00
brew install starship
2019-08-20 06:50:35 +02:00
```
2020-02-03 01:51:45 +01:00
With [Scoop ](https://scoop.sh ):
2019-08-28 01:32:26 +02:00
2019-12-17 22:46:43 +01:00
```powershell
scoop install starship
2019-08-28 01:32:26 +02:00
```
2019-07-19 22:18:52 +02:00
1. Add the init script to your shell's config file:
2019-08-18 19:45:36 +02:00
#### Bash
Add the following to the end of `~/.bashrc` :
```sh
# ~/.bashrc
eval "$(starship init bash)"
```
#### Fish
Add the following to the end of `~/.config/fish/config.fish` :
2019-07-19 22:18:52 +02:00
2019-08-18 19:45:36 +02:00
```sh
# ~/.config/fish/config.fish
2019-07-19 22:18:52 +02:00
2019-10-29 04:48:45 +01:00
starship init fish | source
2019-08-18 19:45:36 +02:00
```
2019-07-19 22:18:52 +02:00
2019-08-18 19:45:36 +02:00
#### Zsh
2019-07-19 22:18:52 +02:00
2019-08-18 19:45:36 +02:00
Add the following to the end of `~/.zshrc` :
2019-07-19 22:18:52 +02:00
2019-08-18 19:45:36 +02:00
```sh
# ~/.zshrc
2019-07-19 22:18:52 +02:00
2019-08-18 19:45:36 +02:00
eval "$(starship init zsh)"
```
2019-10-15 17:10:16 +02:00
#### Powershell
2020-11-03 18:52:46 +01:00
Add the following to the end of `Microsoft.PowerShell_profile.ps1` . You can check the location of this file by querying the `$PROFILE` variable in PowerShell. Typically the path is `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` or `~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix.
2019-10-15 17:10:16 +02:00
```sh
Invoke-Expression (& starship init powershell)
```
2019-12-17 22:46:43 +01:00
#### Ion
Add the following to the end of `~/.config/ion/initrc` :
```sh
# ~/.config/ion/initrc
eval $(starship init ion)
```
2021-02-02 12:59:55 +01:00
#### Elvish
::: warning
Only elvish v0.15 or higher is supported.
:::
Add the following to the end of `~/.elvish/rc.elv` :
```sh
# ~/.elvish/rc.elv
eval (starship init elvish)
```
2021-02-27 19:55:27 +01:00
#### Tcsh
Add the following to the end of `~/.tcshrc` :
```sh
# ~/.tcshrc
2021-03-12 16:27:04 +01:00
eval `starship init tcsh`
2021-02-27 19:55:27 +01:00
```
2021-07-04 21:32:58 +02:00
#### Nushell
::: warning
This will change in the future.
Only nu version v0.33 or higher is supported.
:::
2021-07-05 03:59:40 +02:00
Add the following to your nu config file. You can check the location of this
file by running `config path` in nu.
2021-07-04 21:32:58 +02:00
```toml
startup = [
"mkdir ~/.cache/starship",
"starship init nu | save ~/.cache/starship/init.nu",
"source ~/.cache/starship/init.nu"
]
prompt = "starship_prompt"
```