Intro
The minimal, blazing-fast, and infinitely customizable prompt for any shell!
- starship
Reasons starship
- It is written in rust, you can expect almost C-language like performance.
- Starship provides consistent and identical prompt across shell, this was the biggest selling point for me.
- Shows active git branch and repo status if navigated directory is git repository, huge time saver.
- Smart enough to show major programming language version based on contents of directory and virtual environment name if it is active.
- Last command status via color, green for success and red for failure
Installation
Fire up your favourite terminal emulator.
|
|
|
|
Configuration
Next up, initialize startship. To do that, Update config file based on the shell in use.
|
|
|
|
|
|
starship offers lots of bell and whistles when it cames to configuration with ability to customize every aspect of the prompt.
Use this config as a starting point. Remove/update parts to fit your taste.
|
|
Closing thoughts
After I made the switch to starship, I felt my search for creating perfect prompt is completed. It provides me consistecy, the other day I have installed powershell and first thing I did was set up starship. After a while, I was confused as to why regular linux commands are not working only to find out that I was in powershell 😄.