Published 04-19-2024
Starship is a minimal, fast, and highly customizable prompt for any shell.
package.json
is detected.⚡ Follow the installation guide for your operating system to get started.
One of my favorite features of Starship is how easy it is to move information above or to the right of your current line.
With a long folder and branch name, prompts tend to push your cursor far to the right. Starship solves this problem by providing the option to place your prompt above the cursor or place additional information to the right side of the terminal.
When using the right side, the prompt will intelligently hide the additional information when your current text collides with the right prompt.
Starship makes it easy to make your own modules. For example, this module detects if tailwind css is present in a project. If it is present, append this sweet bird emoji.
[custom.tailwind]
detect_files = ['tailwind.config.cjs']
symbol = "🕊️"
format = "[$symbol]"
This is a very simple custom module. You could get more advanced by adding properties like command
which can append the result of a command to your prompt.
⚡ If you enjoyed this article, consider checking out Flotes. It’s the Markdown note taking and study application we use to learn and research topics like the one in this article.