Last active
February 28, 2021 08:37
-
-
Save sayanriju/744cbe25dd55a25b9e7310c691b4cdce to your computer and use it in GitHub Desktop.
My ZSH Theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ret_status="%(?:%{$fg_bold[green]%}λ:%{$fg_bold[red]%}λ%s)" | |
PROMPT='${ret_status}%{$fg_bold[cyan]%}%p %{$fg[cyan]%}%c » %{$fg[green]%}%{$reset_color%}' | |
RPROMPT='$(git_prompt_info)%{$fg_bold[white]%}%{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%} " | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[yellow]%}%{$fg[red]%} 🗴 %{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[yellow]%}%{$fg[green]%} 🗹 %{$reset_color%}" | |
ZSH_PROMPT_BASE_COLOR="%{$fg_bold[white]%}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ret_status="%(?:%{$fg_bold[green]%}λ:%{$fg_bold[red]%}λ%s)" | |
right_triangle() { | |
echo $'\ue0b0' | |
} | |
start_arrow() { | |
echo "%K{default}%F{cyan}%S$(right_triangle)%s" | |
} | |
end_arrow() { | |
echo "%K{none}%F{cyan}$(right_triangle)" | |
} | |
PROMPT='${ret_status}%{$reset_color%}$(start_arrow)%K{cyan}%F{black} %c $(end_arrow)%{$reset_color%} ' | |
RPROMPT='$(git_prompt_info)%{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%} " | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[yellow]%}%{$fg[red]%} 🗴 %{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[yellow]%}%{$fg[green]%} 🗹 %{$reset_color%}" | |
ZSH_PROMPT_BASE_COLOR="%{$fg_bold[white]%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment