LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

starship-init

Initialize Starship prompt for shells

TLDR

Initialize for bash
$ eval "$(starship init bash)"
copy
Initialize for zsh
$ eval "$(starship init zsh)"
copy
Initialize for fish
$ starship init fish | source
copy
Initialize for PowerShell
$ Invoke-Expression (&starship init powershell)
copy

SYNOPSIS

starship init shell

DESCRIPTION

starship init generates shell initialization for Starship prompt. Outputs script to be evaluated by shell. Add to shell config for persistent prompt customization.

PARAMETERS

bash

Bash shell.
zsh
Zsh shell.
fish
Fish shell.
powershell
PowerShell.
--print-full-init
Print full initialization script.

INSTALL

sudo apt install starship
copy
sudo pacman -S starship
copy
sudo apk add starship
copy
sudo zypper install starship
copy
brew install starship
copy
nix profile install nixpkgs#starship
copy

SEE ALSO

Copied to clipboard
Kai