mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge 634edaec7c into 5667161d49
This commit is contained in:
commit
fa3ca1a2ba
1 changed files with 12 additions and 0 deletions
12
themes/afc163.zsh-theme
Normal file
12
themes/afc163.zsh-theme
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
PROMPT='%{$fg_bold[green]%}➼ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c%{$fg_bold[grey]%}$(package_version)%{$fg_bold[grey]%} %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="git:❨%{$fg[red]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}❩ %{$fg[yellow]%}✗%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}❩"
|
||||||
|
|
||||||
|
function package_version() {
|
||||||
|
if [ -f ./package.json ]; then
|
||||||
|
echo "@"$(grep '"version"' ./package.json | head -n 1 | awk -F'"' '{print $4}')
|
||||||
|
fi
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue