mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-19 02:02:32 +01:00
Initial async prompt utility wrapper
This commit is contained in:
parent
a4424dfefd
commit
c4a126c2ac
4 changed files with 39 additions and 26 deletions
|
|
@ -23,4 +23,8 @@ vcs_status() {
|
|||
fi
|
||||
}
|
||||
|
||||
PROMPT='%2~ $(vcs_status)»%b '
|
||||
# Register the sync function
|
||||
autoload -Uz _omz_make_async_function
|
||||
_omz_make_async_function vcs_status
|
||||
|
||||
PROMPT='%2~ $(vcs_status_async)»%b '
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
PROMPT="%(?:%{$fg_bold[green]%}%1{➜%} :%{$fg_bold[red]%}%1{➜%} ) %{$fg[cyan]%}%c%{$reset_color%}"
|
||||
PROMPT+=' $(git_prompt_info)'
|
||||
PROMPT+=' $(git_prompt_info_async)'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue