rust

Installation

https://starship.rs/guide/#%F0%9F%9A%80-installation

Arch Linux

sudo pacman -S starship
paru -S ttf-firacode-nerd

Set up your shell to use Starship

zsh

Add the following to the end of ~/.zshrc:

eval "$(starship init zsh)"

Configure Starship

https://starship.rs/config/ To get started configuring starship, create the following file: ~/.config/starship.toml.

mkdir -p ~/.config && touch ~/.config/starship.toml

All configuration for starship is done in this TOML file:

# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
 
# Inserts a blank line between shell prompts
add_newline = true
 
# Replace the '❯' symbol in the prompt with '➜'
[character] # The name of the module we are configuring is 'character'
success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
 
# Disable the package module, hiding it from the prompt completely
[package]
disabled = true

Config File Location

You can change default configuration file location with STARSHIP_CONFIG environment variable:

List Available Modules

starship module --list

Reference List

  1. https://starship.rs/
  2. https://github.com/starship/starship