/max0003

max0003 - custom oh-my-zsh theme

MIT LicenseMIT

max0003 ZSH prompt theme

Custom oh-my-zsh prompt theme based on:

Screenshots

Xfce4 terminal:

  • custom palette
  • font: Hasklig 13

max0003 zsh prompt

Gnome terminal:

  • system color palette
  • scheme: solarized dark built
  • font: Droid Sans Mono for Powerline Regular 13

max0003 zsh prompt

Prompt features

Basically, I borrowed and adapted the first and the second line from smt.

First line

It shows on the left:

  • git infos:
    • current short sha,
    • git prompt info:
      • current git branch, called master and
      • dirty in screenshot ( ⚡ )
    • git time since last commit,
    • added, modified, staged, unstaged, etc status:
      • ✹ modified and
      • ✭ untracked in screenshot

Second line

It shows on the left:

  • prompt char (  or , visible in screenshot ):
    • green  char if the previous command returned successfully,
    • red  char otherwise.

On the right:

  • current path ( %1 ),
  • host name.

Usage

Check oh-my-zsh themes documentation about using themes. To make it easy:

  • just drop the max0003.zsh-theme file in the themes/ directory in your oh-my-zsh distribution and
  • in order to enable it, set ZSH_THEME to the name of the theme ( ZSH_THEME="max0003" ) in your ~/.zshrc ( or in a configuration file loaded by .zshrc ).