mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Add my theme: carlcarl.zsh-theme
This commit is contained in:
parent
1120f97305
commit
78f6aac440
1 changed files with 35 additions and 0 deletions
35
themes/carlcarl.zsh-theme
Normal file
35
themes/carlcarl.zsh-theme
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
|
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
|
||||||
|
setopt promptsubst
|
||||||
|
|
||||||
|
autoload -U add-zsh-hook
|
||||||
|
|
||||||
|
HOST_PROMPT_="%{$fg_bold[magenta]%}@$HOST "
|
||||||
|
|
||||||
|
PROMPT_SUCCESS_COLOR=$FG[077]
|
||||||
|
PROMPT_FAILURE_COLOR=$FG[124]
|
||||||
|
PROMPT_VCS_INFO_COLOR=$FG[242]
|
||||||
|
PROMPT_PROMPT=$FG[077]
|
||||||
|
GIT_DIRTY_COLOR=$fg_bold[magenta]
|
||||||
|
GIT_CLEAN_COLOR=$FG[118]
|
||||||
|
GIT_PROMPT_INFO=$fg_bold[magenta]
|
||||||
|
|
||||||
|
PROMPT='$HOST_PROMPT_%{$PROMPT_SUCCESS_COLOR%}%~%{$reset_color%} %{$GIT_PROMPT_INFO%}$(git_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}➭%{$reset_color%} '
|
||||||
|
|
||||||
|
RPROMPT='[%*]'
|
||||||
|
#RPS1="${return_code}"
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔"
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}"
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue