Skip to content

i5ar/agnoster-zsh-theme

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agnoster Zsh theme

NOTE: This fork supports Virtual Environments!

Virtual Environments

A Zsh theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + DejaVu)

For Mac users, I highly recommend iTerm 2 + Solarized Dark
For GNOME GNU/Linux users, I highly recommend GNOME Terminal + Solarized dark
For KDE GNU/Linux users, I highly recommend Konsole + Solarized Dark

Compatibility

NOTE: In all likelihood, you will need to install a Nerd font for this theme to render correctly.

To test if your terminal and font support it, check that all the necessary characters are supported by copying the following command to your terminal: echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699 \ue606". The result should look like this:

Characters

What does it show?

  • If the previous command failed (✘)
  • User@Hostname (if user is not DEFAULT_USER, which can then be set in your profile)
  • Git status
    • Branch () or detached head (➦)
    • Current branch / SHA1 in detached head state
    • Dirty working directory (±, color change)
  • Working directory
  • Elevated (root) privileges (⚡)
  • Virtual Environments

Screenshot

Future Work

I don't want to clutter it up too much, but I am toying with the idea of adding RVM (ruby version) and n (node.js version) display.

It's currently hideously slow, especially inside a git repo. I guess it's not overly so for comparable themes, but it bugs me, and I'd love to hear ideas about how to improve the performance.

Would be nice for the code to be a bit more sane and re-usable. Something to easily append a section with a given FG/BG, and add the correct opening and closing.

Also the dependency on a powerline-patched font is regrettable, but there's really no way to get that effect without it. Ideally there would be a way to check for compatibility, or maybe even fall back to one of the similar unicode glyphs.

About

A Zsh theme designed to disclose information contextually, with a powerline aesthetic

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%