Home

Awesome

Daniel’s ZSH theme

This is a simple two line (well, three if you count the blank) prompt for ZSH. It is fast, allows for plenty of space to type commands, and looks good when copied and pasted.

If git-status-vars is available, it will use it to get better information about git repos, as well as a slight edge in speed. It will warn you if it is not present, but that can be disabled by setting IGNORE_GIT_STATUS_VARS=1 before loading this plugin.

<img src="screenshot.png" width="525" height="484" alt="" />

See EXAMPLE.md for a uncolored text version of the screenshot.

Configuration

You can set danielparks_theme=compact to get a compact version of the theme. This is useful for situations where you want to copy and paste your shell. It may be set and unset during the shell session. Set danielparks_theme=full or just unset the variable to restore the full theme.

You can set danielparks_theme=minimal to get an even more minimal version of the theme that just shows or as the prompt depending on whether the last command succeeded or failed.

You can set IGNORE_GIT_STATUS_VARS=1 to disable the check for git-status-vars on start up. Note that this will still use git-status-vars if it is present in $PATH.

What does it show?

Configuration

This warns if git-status-vars is not installed. To suppress the message, set IGNORE_GIT_STATUS_VARS=1 before loading this plugin.

Compatibility

To test your terminal and font support, try echo "⚠️ ● ⦿ ○ ✔ ↑ ↓ ❯".

Testing

This can be used with my simple Zsh test harness. You can run tests with run-tests.zsh, and if you want to see what prompts looks like in various situations, you can run run-tests.zsh --show-output.

Development status

I’ll update this as I come up with new ideas or run into problems. I use this theme daily, so it’s unlikely to bit rot. I’m open to suggestions and pull requests if other people find this useful.

License

This was originally based on agnoster-zsh-theme. I believe I have replaced enough of the code that it’s fair to say this is unencumbered by the original copyright. (I am not a lawyer; consult a lawyer if this matters to you.)

That said, I disclaim all copyright on this work. It is provided without warranty. As much as it can be said to be licensed, it is licensed under the Unlicense, a copy of which is provided in UNLICENSE.