mirror of
https://github.com/chenasraf/lambda-mod-zsh-theme.git
synced 2026-05-18 01:49:05 +00:00
37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
local SEGMENT_SEPARATOR=''
|
|
local GIT_BRANCH=''
|
|
local lambda="%(?,%{$fg_bold[green]%}λ,%{$fg_bold[red]%}λ)"
|
|
|
|
PROMPT='
|
|
${lambda}\
|
|
%{$fg_bold[magenta]%}%n\
|
|
%{$fg[black]%}[%3~]\
|
|
$(git_prompt_info)\
|
|
$(git_prompt_status)
|
|
%{$fg[yellow]%}→ \
|
|
%{$reset_color%}'
|
|
|
|
RPROMPT='$(git_prompt_short_sha)%{$reset_color%}'
|
|
|
|
# Format for git_prompt_info()
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="at %{$fg[magenta]%}⭠ "
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
ZSH_THEME_GIT_PROMPT_DIRTY=""
|
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
|
|
# Format for git_prompt_status()
|
|
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg_bold[green]%}+"
|
|
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg_bold[blue]%}!"
|
|
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg_bold[red]%}-"
|
|
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg_bold[magenta]%}>"
|
|
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg_bold[yellow]%}#"
|
|
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[cyan]%}?"
|
|
|
|
# Format for git_prompt_ahead()
|
|
ZSH_THEME_GIT_PROMPT_AHEAD=" %{$fg_bold[white]%}^"
|
|
|
|
|
|
# Format for git_prompt_long_sha() and git_prompt_short_sha()
|
|
ZSH_THEME_GIT_PROMPT_SHA_BEFORE=" %{$fg_bold[white]%}[%{$fg_bold[yellow]%}"
|
|
ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$fg_bold[white]%}]"
|