22
How to setup Starship Prompt and Zsh on Crostini
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!
22