AgnosterZak is a oh-my-zsh shell theme based on the Powerline Vim plugin & Agnoster Theme.
It currently shows:
- Battery Life (in case of the laptop is not charging)
- Timestamp
- Current directory
- Git status
- User & Host status
It's better to use AgnosterZak with a Solarized dark color scheme or others dark color schemes.
In order to use the theme, you will first need:
- Powerline compatible fonts like Vim Powerline patched fonts, Input Mono or Monoid.
- On Ubuntu like systems you'll need the
ttf-ancient-fonts
package to correctly display some unicode symbols that are not covered by the Powerline fonts above. - A ZSH framework like oh-my-zsh
After installing oh-my-zsh
-
Download the theme here
-
Put the file agnosterzak.zsh-theme in $ZSH_CUSTOM/themes/
-
Configure the theme in your ~/.zshrc file:
ZSH_THEME="agnosterzak"
AgnosterZak is configurable. You can change colors and which segments you want or don't want to see. All options must be overridden in your .zshrc file.
The info will display in case of the laptop is not charging
Battery status | Color |
---|---|
more than 39% | green |
less than 40% and more than 19% | yellow |
less than 20% | red |
Background Color & Foreground Color | Meaning |
---|---|
Absolutely clean state | |
There are stashed files | |
There are new untracked files | |
There are modified or deleted files but unstaged |
Icon | Meaning |
---|---|
✔ |
clean directory |
☀ |
new untracked files preceeded by their number |
✚ |
added files from the new untracked ones preceeded by their number |
‒ |
deleted files preceeded by their number |
● |
modified files preceeded by their number |
± |
added files from the modifies or delete ones preceeded by their number |
⚑ |
ready to commit |
⚙ |
sets of stashed files preceeded by their number |
☊ |
branch has a stream, preceeded by his remote name |
↑ |
commits ahead on the current branch comparing to remote, preceeded by their number |
↓ |
commits behind on the current branch comparing to remote, preceeded by their number |
<B> |
bisect state on the current branch |
>M< |
Merge state on the current branch |
>R> |
Rebase state on the current branch |
This theme is highly inspired by the following themes: