mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
dedsec theme
This commit is contained in:
parent
f11cc8fea1
commit
dcb8696389
1 changed files with 24 additions and 0 deletions
24
themes/dedsec.zsh-theme
Executable file
24
themes/dedsec.zsh-theme
Executable file
|
|
@ -0,0 +1,24 @@
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}on %{$fg[white]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}●%{$fg[green]%}%{$reset_color%} "
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%} "
|
||||||
|
ZSH_THEME_SVN_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX
|
||||||
|
ZSH_THEME_SVN_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX
|
||||||
|
ZSH_THEME_SVN_PROMPT_DIRTY=$ZSH_THEME_GIT_PROMPT_DIRTY
|
||||||
|
ZSH_THEME_SVN_PROMPT_CLEAN=$ZSH_THEME_GIT_PROMPT_CLEAN
|
||||||
|
ZSH_THEME_HG_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX
|
||||||
|
ZSH_THEME_HG_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX
|
||||||
|
ZSH_THEME_HG_PROMPT_DIRTY=$ZSH_THEME_GIT_PROMPT_DIRTY
|
||||||
|
ZSH_THEME_HG_PROMPT_CLEAN=$ZSH_THEME_GIT_PROMPT_CLEAN
|
||||||
|
|
||||||
|
vcs_status() {
|
||||||
|
if [[ $(whence in_svn) != "" ]] && in_svn; then
|
||||||
|
svn_prompt_info
|
||||||
|
elif [[ $(whence in_hg) != "" ]] && in_hg; then
|
||||||
|
hg_prompt_info
|
||||||
|
else
|
||||||
|
git_prompt_info
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
PROMPT='(%m) $fg[green]%}🢖 %1~%{$reset_color%} $(vcs_status)🢖%b '
|
||||||
Loading…
Add table
Add a link
Reference in a new issue