How to setup Starship Prompt and Zsh on Crostini

Search for a command to run...

No comments yet. Be the first to comment.
FYI: This is experimental and may not work on your system.

If you've ever coded for an Arduino, you're probably familiar with the Arduino IDE. Is your IDE just not uploading your sketch? Are you getting an error such as this? If so, the fix is quite simple. First, locate the Tools section on the top bar of ...

Hey all! This is a quick one, but I use command aliases all the time and they make my life so much easier when I'm in the terminal. Let's get started! 1. Opening the .bashrc file The .bashrc file is short for "bash run commands". It can be located in...

GitHub CLI is a wonderful new tool released by GitHub in an effort to bring GitHub to the terminal. In this tutorial, I will be showing you how to setup, install and use some basic features of GitHub CLI. Installation Because of the amount of install...

Hey all! I made this guide after getting Starship successfully working on Bash, but zsh would refuse to accept the init script.
This step is not required if you've already set a custom password for your Crostini container.
Run sudo passwd user, where user is your username.
...whether it be from your package manager of choice, or from source.
Then, simply run this command to add zsh's binary to /etc/shells:
command -v zsh | sudo tee -a /etc/shells
Now, set it as your default shell:
chsh -s $(which zsh)
Run curl -fsSL https://starship.rs/install.sh | bash to start the installation.
To add Starship's init script to your .zshrc file, simply run one last command:
echo $(starship init zsh) >> ~/.zshrc
Enjoy your new beautiful and blazing fast prompt with the power of Rust and zsh!