2019-07-19 20:18:52 +00:00
---
2024-03-03 16:55:30 +00:00
layout: home
hero:
image: /logo.svg
text: null
tagline: The minimal, blazing-fast, and infinitely customizable prompt for any shell!
actions:
- theme: brand
text: Get Started →
link: ./guide/
2020-02-03 00:51:45 +00:00
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 16:50:29 +00:00
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
2019-07-19 20:18:52 +00:00
2020-02-03 00:51:45 +00:00
# Used for the description meta tag, for SEO
2020-02-03 01:03:47 +00:00
metaTitle: "Starship: Cross-Shell Prompt"
2022-01-10 05:47:53 +00: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.
2020-02-03 00:51:45 +00:00
---
2019-07-19 20:18:52 +00:00
2024-05-06 23:55:39 +00:00
< script setup >
import { onMounted } from 'vue'
onMounted(() => {
const urlParams = new URLSearchParams(window.location.search)
if (urlParams.has('uwu') || urlParams.has('kawaii')) {
const img = document.querySelector('.VPHero .VPImage.image-src')
img.classList.add('uwu')
img.src = '/logo-uwu.png'
img.alt = 'Kawaii Starship Logo by @sawaratsuki1004 '
}
})
< / script >
2024-03-03 16:55:30 +00:00
< video class = "demo-video" muted autoplay loop playsinline >
< source src = "/demo.webm" type = "video/webm" >
< source src = "/demo.mp4" type = "video/mp4" >
< / video >
2019-08-23 00:03:45 +00:00
2021-04-08 20:16:11 +00:00
### Prerequisites
- A [Nerd Font ](https://www.nerdfonts.com/ ) installed and enabled in your terminal.
2019-07-19 20:18:52 +00:00
### Quick Install
1. Install the **starship** binary:
2019-12-17 21:46:43 +00:00
#### Install Latest Version
2019-08-18 17:45:36 +00:00
2019-12-17 21:48:17 +00:00
With Shell:
2019-08-18 17:45:36 +00:00
```sh
2022-03-08 20:47:54 +00:00
curl -sS https://starship.rs/install.sh | sh
2019-08-18 17:45:36 +00:00
```
2022-03-08 20:47:54 +00:00
2021-04-01 14:38:51 +00:00
To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
2019-08-18 17:45:36 +00:00
2019-12-17 21:46:43 +00:00
#### Install via Package Manager
2019-08-18 17:45:36 +00:00
2019-12-17 21:48:17 +00:00
With [Homebrew ](https://brew.sh/ ):
2019-08-20 04:50:35 +00:00
```sh
2019-12-17 21:46:43 +00:00
brew install starship
2019-08-20 04:50:35 +00:00
```
2024-03-03 16:55:30 +00:00
2022-10-07 20:35:36 +00:00
With [Winget ](https://github.com/microsoft/winget-cli ):
2019-08-27 23:32:26 +00:00
2019-12-17 21:46:43 +00:00
```powershell
2022-10-07 20:35:36 +00:00
winget install starship
2019-08-27 23:32:26 +00:00
```
2019-07-19 20:18:52 +00:00
1. Add the init script to your shell's config file:
2019-08-18 17:45:36 +00: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 20:18:52 +00:00
2019-08-18 17:45:36 +00:00
```sh
# ~/.config/fish/config.fish
2019-07-19 20:18:52 +00:00
2019-10-29 03:48:45 +00:00
starship init fish | source
2019-08-18 17:45:36 +00:00
```
2019-07-19 20:18:52 +00:00
2019-08-18 17:45:36 +00:00
#### Zsh
2019-07-19 20:18:52 +00:00
2019-08-18 17:45:36 +00:00
Add the following to the end of `~/.zshrc` :
2019-07-19 20:18:52 +00:00
2019-08-18 17:45:36 +00:00
```sh
# ~/.zshrc
2019-07-19 20:18:52 +00:00
2019-08-18 17:45:36 +00:00
eval "$(starship init zsh)"
```
2019-10-15 15:10:16 +00:00
#### Powershell
2020-11-03 17:52:46 +00: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 15:10:16 +00:00
```sh
Invoke-Expression (& starship init powershell)
```
2019-12-17 21:46:43 +00:00
#### Ion
Add the following to the end of `~/.config/ion/initrc` :
```sh
# ~/.config/ion/initrc
eval $(starship init ion)
```
2021-07-16 19:25:01 +00:00
2021-02-02 11:59:55 +00:00
#### Elvish
::: warning
2022-04-25 16:35:09 +00:00
2022-03-25 10:57:38 +00:00
Only elvish v0.18 or higher is supported.
2022-04-25 16:35:09 +00:00
2021-02-02 11:59:55 +00:00
:::
Add the following to the end of `~/.elvish/rc.elv` :
```sh
# ~/.elvish/rc.elv
eval (starship init elvish)
```
2021-02-27 18:55:27 +00:00
#### Tcsh
Add the following to the end of `~/.tcshrc` :
```sh
# ~/.tcshrc
2021-03-12 15:27:04 +00:00
eval `starship init tcsh`
2021-02-27 18:55:27 +00:00
```
2021-07-04 19:32:58 +00:00
2021-07-16 19:25:01 +00:00
#### Nushell
2021-07-04 19:32:58 +00:00
::: warning
2022-04-25 16:35:09 +00:00
2021-07-04 19:32:58 +00:00
This will change in the future.
2023-06-12 09:02:46 +00:00
Only Nushell v0.78+ is supported.
2022-05-07 00:47:30 +00:00
2021-07-04 19:32:58 +00:00
:::
2022-05-07 00:47:30 +00:00
2022-12-29 17:57:54 +00:00
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
2024-03-03 16:55:30 +00:00
2022-03-24 19:06:24 +00:00
```sh
mkdir ~/.cache/starship
2022-12-30 17:04:47 +00:00
starship init nu | save -f ~/.cache/starship/init.nu
2021-07-04 19:32:58 +00:00
```
2021-07-16 19:25:01 +00:00
2022-03-24 19:06:24 +00:00
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path` ):
```sh
2023-06-12 09:02:46 +00:00
use ~/.cache/starship/init.nu
2022-03-24 19:06:24 +00:00
```
2023-06-12 09:02:46 +00:00
2021-07-16 19:25:01 +00:00
#### Xonsh
Add the following to the end of `~/.xonshrc` :
```sh
# ~/.xonshrc
execx($(starship init xonsh))
```
2022-01-10 05:47:53 +00: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"))()
```