Make your prompt asynchronous in Fish.
We run your fish_prompt
and fish_right_prompt
functions as a separate process to update your prompt asynchronously.
With Fisher:
$ fisher install acomagu/fish-async-prompt
If you have problems, try changing the values of these variables.
Define variables inherited to prompt functions. Set all
to pass all global variables.
Default: status SHLVL CMD_DURATION
Example:
set -U async_prompt_inherit_variables all
Define functions replaced to run asynchronously. Usually one or both of fish_prompt
and fish_right_prompt
.
Other functions can be specified, but they must be called from fish_prompt
or fish_right_prompt
and function arguments can't be passed to it.
Default: fish_prompt fish_right_prompt
Example:
set -U async_prompt_functions fish_right_prompt