Make your prompt asynchronous in Fish shell.
It runs fish_prompt
and fish_right_prompt
functions as another process and then, update the prompt asynchronously.
With fisher:
$ fisher add acomagu/fish-async-prompt
If your prompt doesn't work correctly, try changing the configuration.
Define variables inherited to prompt functions. Set all
to pass all global variables.
Default: status SHLVL CMD_DURATION
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 arguments can't be passed.
Default: fish_prompt fish_right_prompt