AgnosterZak for oh-my-zsh
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
Preview
Other color schemes
It's better to use AgnosterZak with a Solarized dark color scheme or others dark color schemes.
Requirements
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
Installing
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"
Options
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.
Segments
Battery Life
The info will display in case of the laptop is not charging.
If you're using Linux, install acpi
package (i.e. sudo apt install acpi
).
Battery status | Color |
---|---|
more than 39% | green |
less than 40% and more than 19% | yellow |
less than 20% | red |
Git
Color States
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 |
Icons
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 |
Credits
This theme is highly inspired by the following themes: