mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Add jacobevelyn theme.
This commit is contained in:
parent
c79e5a97a9
commit
0de805b8ea
1 changed files with 22 additions and 0 deletions
22
themes/jacobevelyn.zsh-theme
Normal file
22
themes/jacobevelyn.zsh-theme
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
function parent_project() {
|
||||||
|
[[ $PWD =~ ([a-z]+)/vendor ]] && echo " $match[1] "
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_color() {
|
||||||
|
index=$(( `date +%s` % 6 + 1))
|
||||||
|
colors=( yellow green cyan blue red magenta )
|
||||||
|
echo "%{$fg[${colors[$index]}]%}"
|
||||||
|
}
|
||||||
|
|
||||||
|
PROMPT='$(get_color)࿓ %{$fg_bold[blue]%}$(parent_project)%{$fg[cyan]%}%c %{$fg_bold[magenta]%}$(git_prompt_info)%{$reset_color%}'
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg[green]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[magenta]%}] %{$fg[red]%}♡ "
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[magenta]%}] %{$fg[red]%}♥ "
|
||||||
|
|
||||||
|
TMOUT=10
|
||||||
|
|
||||||
|
TRAPALRM() {
|
||||||
|
zle reset-prompt
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue