All Projects → tylerreckart → Hyperzsh

tylerreckart / Hyperzsh

Licence: mit
A hyperminimal zsh prompt

Projects that are alternatives of or similar to Hyperzsh

Polyglot
Color, ASCII-only Git prompt for zsh, bash, ksh93, mksh, pdksh, dash, and busybox ash
Stars: ✭ 118 (-74.89%)
Mutual labels:  zsh, zsh-theme
Common
A simple, clean and minimal prompt.
Stars: ✭ 213 (-54.68%)
Mutual labels:  zsh, zsh-theme
Alien Minimal
An asynchronous minimal zsh prompt
Stars: ✭ 122 (-74.04%)
Mutual labels:  zsh, zsh-theme
Lambda Zsh Theme
λ Beautiful lambda theme for Zsh
Stars: ✭ 39 (-91.7%)
Mutual labels:  zsh, zsh-theme
aphrodite-terminal-theme
🎀 Minimalistic Aphrodite theme for sexy terminals
Stars: ✭ 64 (-86.38%)
Mutual labels:  zsh, zsh-theme
Pi
A minimalist zsh theme with git status decorations
Stars: ✭ 76 (-83.83%)
Mutual labels:  zsh, zsh-theme
Agkozak Zsh Prompt
A fast, asynchronous ZSH prompt with color ASCII indicators of Git, exit, SSH, virtual environment, and vi mode status. Framework-agnostic and customizable.
Stars: ✭ 182 (-61.28%)
Mutual labels:  zsh, zsh-theme
Dotfiles
What tools and plugins I use for web development?
Stars: ✭ 73 (-84.47%)
Mutual labels:  zsh, zsh-theme
Starship
☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
Stars: ✭ 20,504 (+4262.55%)
Mutual labels:  zsh, zsh-theme
Spaceship Prompt
🚀⭐ A Zsh prompt for Astronauts
Stars: ✭ 15,748 (+3250.64%)
Mutual labels:  zsh, zsh-theme
Dotfiles
🐲 My Arch Linux config [i3-gaps + i3blocks + Zsh + Spacemacs + Rofi + Alacritty + Neofetch]
Stars: ✭ 725 (+54.26%)
Mutual labels:  zsh, zsh-theme
Powerlevel10k
A Zsh theme
Stars: ✭ 23,689 (+4940.21%)
Mutual labels:  zsh-theme, zsh
Jovial
jovial - a jovial theme for zsh
Stars: ✭ 124 (-73.62%)
Mutual labels:  zsh, zsh-theme
Alien
An asynchronous zsh prompt
Stars: ✭ 218 (-53.62%)
Mutual labels:  zsh, zsh-theme
apollo-zsh-theme
Heavily customizable, compatible, and fast ZSH theme framework.
Stars: ✭ 64 (-86.38%)
Mutual labels:  zsh, zsh-theme
Zsh Quickstart Kit
Simple ZSH quickstart for using ZSH and zgen
Stars: ✭ 366 (-22.13%)
Mutual labels:  zsh, zsh-theme
Symfony Console Completion
Automatic tab-key completion for Symfony console application options, arguments and parameters
Stars: ✭ 405 (-13.83%)
Mutual labels:  zsh
Wild Cherry
👸🌷👹 A fairy-tale inspired theme, with tasteful use of emojis
Stars: ✭ 443 (-5.74%)
Mutual labels:  zsh-theme
Dotfiles
My personal dotfiles
Stars: ✭ 400 (-14.89%)
Mutual labels:  zsh
Termux Style
Simple script to change color-schemes and fonts for Termux.
Stars: ✭ 400 (-14.89%)
Mutual labels:  zsh

H Y P E R Z S H

Hyperzsh

Hyperzsh is a z shell theme designed to complement a git-focused workflow. It 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.

It currently shows (in order of the prompt):

  • Current working directory
  • Git branch
  • Current SHA (optional)
  • Exit code of last command
  • Time since last commit
  • Git status

Installation

For antigen users

  1. 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:

  1. mkdir $ZSH_CUSTOM/themes You can skip this command if the directory exists already
  2. wget -O $ZSH_CUSTOM/themes/hyperzsh.zsh-theme https://raw.githubusercontent.com/tylerreckart/hyperzsh/master/hyperzsh.zsh-theme
  3. vim ~/.zshrc
  4. Set ZSH_THEME="current_theme" to ZSH_THEME="hyperzsh"

For Zgen users

  1. 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.

Options

Hyperzsh 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 want. Itching to slap some emoji in there? Go for it!

Show current SHA

If you'd like to view your branch's current SHA, there's already support baked into the theme. All you have to do is edit hyperzsh.zsh-theme and un-comment the Prompt with SHA and ensure that the default prompt gets commented out or removed.

# The prompt
# PROMPT='$(_user_host)$(_python_venv)%{$fg[cyan]%}%c $(git_prompt_info)%{$reset_color%}$(git_prompt_short_sha)%{$fg[magenta]%}$(_git_time_since_commit)$(git_prompt_status)${_return_status}➜ '

# Prompt with SHA
PROMPT='$(_user_host)$(_python_venv)%{$fg[cyan]%}%c $(git_prompt_info)%{$reset_color%}$(git_prompt_short_sha)%{$fg[magenta]%}$(_git_time_since_commit)$(git_prompt_status)${_return_status}➜ '

Example

SHA Prompt

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 Tyler Reckart

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].