Home

Awesome

Odin Preview

Odin is a Z shell theme centered around a Git-heavy workflow. It gives you a comprehensive view of your current branch without cluttering the terminal.

Installation

Antigen

  1. Add antigen bundle tylerreckart/odin to your .zshrc.
  2. Add antigen theme tylerreckart/odin odin.zsh-theme to your .zshrc to use odin.

Antigen will clone and load the odin repository automatically the next time you start a zsh session.

oh-my-zsh

If you're using oh-my-zsh, follow these steps to install odin:

  1. cd zsh_custom/themes

  2. git clone https://github.com/tylerreckart/odin.git && cd odin && make

  3. Set ZSH_THEME="odin" in your .zshrc

If you have any other issues, see the oh-my-zsh documentation for more info.

Zgen

  1. Add zgen load tylerreckart/odin to your .zshrc with your other zgen load statements
  2. zgen save and zgen will automatically handle cloning the repository for you.

Status Indicators

VariableIndicatorMeaning
ZSH_THEME_GIT_PROMPT_UNTRACKEDUntracked files
ZSH_THEME_GIT_PROMPT_ADDEDFiles added to git
ZSH_THEME_GIT_PROMPT_MODIFIEDModified files
ZSH_THEME_GIT_PROMPT_DELETEDDeleted files
ZSH_THEME_GIT_PROMPT_RENAMEDRenamed files
ZSH_THEME_GIT_PROMPT_UNMERGED§Unmerged files
ZSH_THEME_GIT_PROMPT_AHEADRepo ahead of current branch
ZSH_THEME_GIT_PROMPT_DIRTYDirty repository

Right hand prompt

The right hand prompt displays the current branch, time since last commit, as well as commit status of the repository

VariableBranch Color
ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORTGreen
ZSH_THEME_GIT_TIME_SINCE_COMMIT_MEDIUMYellow
ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONGRed
ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRALWhite

Right hand prompt

The right hand prompt displays the current branch, time since last commit, as well as commit status of the repository

VariableBranch Color
ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORTGreen
ZSH_THEME_GIT_TIME_SINCE_COMMIT_MEDIUMYellow
ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONGRed
ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRALGrey

Git Config

When cloning this repository, you'll find a git folder that contains a git config that I've found to work well with this shell. Just copy the files, .gitconfig and .gitmessage over to your home directory and you'll be all set.

License

MIT Tyler Reckart