https://github.com/zakaziko99/agnosterzak-ohmyzsh-theme
An oh-my-zsh theme based on Powerline Vim & Agnoster theme
https://github.com/zakaziko99/agnosterzak-ohmyzsh-theme
Last synced: 4 months ago
JSON representation
An oh-my-zsh theme based on Powerline Vim & Agnoster theme
- Host: GitHub
- URL: https://github.com/zakaziko99/agnosterzak-ohmyzsh-theme
- Owner: zakaziko99
- Created: 2016-02-28T12:45:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-27T23:29:08.000Z (over 6 years ago)
- Last Synced: 2024-11-25T04:34:39.126Z (12 months ago)
- Language: Shell
- Size: 358 KB
- Stars: 387
- Watchers: 6
- Forks: 75
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-zsh-plugins - agnosterzak - Based on [Agnoster](https://gist.github.com/agnoster/3712874), shows battery life, date & time, `git` status, current directory and user & host information. (Themes / ZSH on Windows)
- fucking-awesome-zsh-plugins - agnosterzak - Based on đ [Agnoster](gist.github.com/agnoster/3712874), shows battery life, date & time, `git` status, current directory and user & host information. (Themes / ZSH on Windows)
- awesome-zsh-plugins - agnosterzak - Based on [Agnoster](https://gist.github.com/agnoster/3712874), shows battery life, date & time, `git` status, current directory and user & host information. (Themes / Zinit (nÊe zplugin))
README
# AgnosterZak for oh-my-zsh 
AgnosterZak is a [oh-my-zsh shell](https://github.com/robbyrussell/oh-my-zsh) theme based on the
[Powerline Vim plugin](https://github.com/Lokaltog/vim-powerline) &
[Agnoster Theme](https://gist.github.com/agnoster/3712874).
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](https://github.com/Lokaltog/powerline-fonts), [Input Mono](http://input.fontbureau.com/) or [Monoid](http://larsenwork.com/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](https://github.com/robbyrussell/oh-my-zsh)
## Installing
After installing [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh)
1. Download the theme [here](http://raw.github.com/zakaziko99/agnosterzak-ohmyzsh-theme/master/agnosterzak.zsh-theme)
2. Put the file **agnosterzak.zsh-theme** in **$ZSH_CUSTOM/themes/**
3. Configure the theme in your **~/.zshrc** file:
```bash
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
|``|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:
- [Powerline](https://github.com/jeremyFreeAgent/oh-my-zsh-powerline-theme)
- [Agnoster](https://gist.github.com/agnoster/3712874)