Skip to content

anki-code/starship-prompt-mono

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Monochrome style for starship prompt. Using single color without emoji to stay focused on command line.

Concept

  • No color juggling or emoji spam.
  • Focus on the input line and current directory.
  • The command prompt always starts at a fixed position.
  • Output is separated by a divider line.
  • Time matters.

If you like the idea click ⭐ on the repo and spread the word about it.

Appearance

image

(starship-prompt-mono with xonsh shell)

Install

mkdir -p ~/.config
wget https://raw.githubusercontent.com/anki-code/starship-prompt-mono/refs/heads/main/starship.toml
vim starship.toml  # Set your shell character: `@` - xonsh, `$` - bash, `%` - zsh, `~>` - fish.
# Run the shell with starship support.

Notes

Using with xonsh

Use starship-prompt-mono with xonsh via xontrib-prompt-starship. To make an accent to the input take a look LolcatProcessor.

How to add env variable

Add $env_var to format:

# ~/.config/starship.toml
format = """$username$hostname$directory$fill[$all](grey)$time$line_break$env_var$character"""

[env_var.MYPROJECT]
variable = "MYPROJECT"
format = "[$env_value]($style)"
style = "#777777"
default = ""

Credits