Skip to content

Instantly share code, notes, and snippets.

@Imorate
Created June 2, 2022 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Imorate/50d12d71960c6263b1573e8a963f7561 to your computer and use it in GitHub Desktop.
Save Imorate/50d12d71960c6263b1573e8a963f7561 to your computer and use it in GitHub Desktop.
Imozsh theme based on Skill theme
#!/bin/bash
GREEN="%{$fg_bold[green]%}"
YELLOW="%{$fg_bold[yellow]%}"
CYAN="%{$fg_bold[cyan]%}"
RED="%{$fg_bold[red]%}"
WHITE="%{$fg_bold[white]%}"
RESET="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_PREFIX="$WHITE "
ZSH_THEME_GIT_PROMPT_SUFFIX="$RESET"
ZSH_THEME_GIT_PROMPT_DIRTY=" $YELLOW⬢ "
ZSH_THEME_GIT_PROMPT_CLEAN=" $WHITE⬢ "
ZSH_THEME_GIT_COMMITS_BEHIND_PREFIX="$RED⥥ "
ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="$(git_commits_behind)"
ZSH_THEME_GIT_COMMITS_BEHIND_SUFFIX="$RESET"
ZSH_THEME_GIT_COMMITS_AHEAD_PREFIX="$GREEN⥣ "
ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="$(git_commits_ahead)"
ZSH_THEME_GIT_COMMITS_AHEAD_SUFFIX="$RESET"
PROMPT='%(?:$WHITE⚡:$RED⚡) '
PROMPT+='$YELLOW%c $RESET$(git_prompt_info)$RESET ' RPROMPT='$(git_commits_ahead)$(git_commits_behind)$RESET'
# vim:ft=zsh ts=2 sw=2 sts=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment