grayt-zsh-theme
February 7, 2020 ยท View on GitHub
A simple, yet informative, zsh theme
Installation
Clone the repository, preferably under $ZSH_CUSTOM/themes. Then, link the
theme directly in the $ZSH_CUSTOM/themes directory.
git clone https://github.com/evanthegrayt/grayt-zsh-theme.git $ZSH_CUSTOM/themes
ln -s $ZSH_CUSTOM/themes/grayt-zsh-theme/grayt.zsh-theme $ZSH_CUSTOM/themes
Once installed, set the theme in your ~/.zshrc file.
export ZSH_THEME="grayt"
Re-source your ~/.zshrc
. ~/.zshrc
Dependencies
If you want the git branch to truncate, you'll need to install
omz-git.
Screenshots
Here's a few examples, including a non-git directory, a clean git directory,
an un-clean git directory, and a non-zero return code. As you can see, if the
git branch and $PWD will truncate if they cause the line to be too long.
I'm using iTerm2 on MacOS, with
the Hack font.

Customization
You can change the main prompt color by adding the following line to your
~/.zshrc:
GRAYT_PROMPT_COLOR=red # This will make the prompt red
Issues and Reporting Bugs
Please submit an issue if you find bugs.
Self-Promotion
I do these projects for fun, and I enjoy knowing that they're helpful to people. Consider starring the repository if you like it! If you love it, follow me on github!