hagiyat / hyperzsh

Zsh for HyperTerm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

H Y P E R Z S H

Build Status

Hyperzsh

Hyperzsh is a oh-my-zsh shell theme that gives you a comprehensive overview of the branch you're working on and the status of your repository throughout the development process without cluttering your terminal.

If currently shows:

  • Git status
  • Timestamp
  • Current directory
  • Background jobs
  • Exit code of last command

Installation

For antigen users

Add antigen bundle tylerreckart/hyperzsh to your .zshrc. Antigen will clone and load the hyperzsh repository automaticall the next time you start a zsh session.

For oh-my-zsh users

If you're using oh-my-zsh, follow these steps to install hyperzsh:
git clone https://github.com/tylerreckart/hyperzsh
cd hyperzsh && cp -R hyperzsh.zsh-theme ~/.oh-my-zsh/themes/hyperzsh.zsh-theme
vim ~/.zshrc Set ZSH_THEME="current_theme" to ZSH_THEME="hyperzsh"

For Zgen users

Add zgen load tylerreckart/hyperzsh to your .zshrc with your other zgen load statements.
zgen save and zgen will automaticall handle cloning the repository for you.

Color schemes

Hyperzsh was built with HyperTerm in mind. The demo above uses my custom color scheme called hyperblue. You can automatically configure hyperblue by adding 'hyperblue' to the plugins section in ~/.hyperterm.js.

Options

Odin is highly configurable. It was build to seamlessly integrate git into my workflow, but my choices may not work for you. Everything from the icons to colors are customizable to whatever you will. Want to slap some emoji in there? Go for it!

Status Indicators

Variable Indicator Meaning
ZSH_THEME_GIT_PROMPT_UNTRACKED Untracked files
ZSH_THEME_GIT_PROMPT_ADDED Files added to git
ZSH_THEME_GIT_PROMPT_MODIFIED Modified files
ZSH_THEME_GIT_PROMPT_DELETED Deleted files
ZSH_THEME_GIT_PROMPT_RENAMED Renamed files
ZSH_THEME_GIT_PROMPT_UNMERGED § Unmerged files
ZSH_THEME_GIT_PROMPT_AHEAD Repo ahead of current branch
ZSH_THEME_GIT_PROMPT_DIRTY Dirty repository

Right hand prompt

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

Variable Branch Color
ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORT Green
ZSH_THEME_GIT_TIME_SINCE_COMMIT_MEDIUM Yellow
ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONG Red
ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL White

License

MIT (c) 2016 Tyler Reckart

About

Zsh for HyperTerm


Languages

Language:JavaScript 100.0%