Skip to content

Instantly share code, notes, and snippets.

@JM-Mendez
Forked from cravacuore/raw.zsh-theme
Last active December 2, 2020 04:54
Show Gist options
  • Save JM-Mendez/97563d5475bfb7e005358bb9246228b2 to your computer and use it in GitHub Desktop.
Save JM-Mendez/97563d5475bfb7e005358bb9246228b2 to your computer and use it in GitHub Desktop.
Zsh 'raw' theme [ZSH theme] #zsh #theme
# Copied and modified from https://dev.to/cravacuore/comment/i7g0
# Inspired by making a mixture the following themes:
# robbyrussell + arrow + lambda
# changing some colors and elements positions
local ret_status="%(?:%{$fg_bold[grey]%}λ :%{$fg_bold[red]%} λ )"
# ellipsis https://github.com/ohmyzsh/ohmyzsh/issues/7525#issuecomment-456074298
PROMPT=' ${ret_status}%{$fg[magenta]%}%c %{$fg[black]%}git:(%{$fg[cyan]%}%30>...>$(git_current_branch)%>>%{$fg[black]%}$(parse_git_dirty)%{$reset_color%} ➤ %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[grey]%}git:(%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[grey]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[grey]%})"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment