Thyme is a shell theme based on Starship. Compared to an oh-my-zsh-based theme, a starship-based theme is faster and more portable.
Thyme's prompt shows:
- current time and execution time of the last command
- return value of the last command and its meaning (e.g. killed by which signal) if not zero
- job control status if there is at least one job
- git info (current branch name, dirty or not, status, etc.) if in a git repository
To install for zsh, first install starship
.
curl -sS https://starship.rs/install.sh | sudo sh -s -- -y
Then install Thyme:
THYEME_SRC='https://raw.githubusercontent.com/chenhao-ye/thyme/refs/heads/main/thyme.toml'
mkdir -p ~/.config/starship
curl -LsSf "$THYEME_SRC" > ~/.config/starship/thyme.toml
echo 'export STARSHIP_CONFIG="$HOME/.config/starship/thyme.toml"' >> ~/.zshrc
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
The default Thyme theme uses only the left prompt. If you prefer to use the right prompt for jobs/exit code/time, replace the first line THYME_SRC
with the URL of the right-prompt one
THYEME_SRC='https://raw.githubusercontent.com/chenhao-ye/thyme/refs/heads/main/thyme_r.toml'