• Stars
    star
    387
  • Rank 110,971 (Top 3 %)
  • Language
    Shell
  • Created almost 9 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An oh-my-zsh theme based on Powerline Vim & Agnoster theme

AgnosterZak for oh-my-zsh Travis CI

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

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

  1. Download the theme here

  2. Put the file agnosterzak.zsh-theme in $ZSH_CUSTOM/themes/

  3. 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).

Preview

Battery status Color
more than 39% green
less than 40% and more than 19% yellow
less than 20% red

Git

git-preview-1

git-preview-2

Color States

Background Color & Foreground Color Meaning
git-clean Absolutely clean state
git-stash There are stashed files
git-untracked There are new untracked files
git-modified 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: