A simple, yet informative, zsh theme
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/themesOnce installed, set the theme in your ~/.zshrc file.
export ZSH_THEME="grayt"Re-source your ~/.zshrc
. ~/.zshrcIf you want the git branch to truncate, you'll need to install
omz-git.
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.
You can change the main prompt color by adding the following line to your
~/.zshrc:
GRAYT_PROMPT_COLOR=red # This will make the prompt redPlease submit an issue if you find bugs.
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!
