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 '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue