Skip to content

Commit

Permalink
Buffer the prompt string until the prompt function ends.
Browse files Browse the repository at this point in the history
To prevent the blank prompt is shown while prompt function is running.
  • Loading branch information
acomagu committed Nov 29, 2020
1 parent 358dda6 commit 1f8c94a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conf.d/__async_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ function __async_prompt_fire --on-event fish_prompt

for func in (__async_prompt_config_functions)
__async_prompt_config_inherit_variables | __async_prompt_spawn $st \
$func' >'$__async_prompt_tmpdir'/'$fish_pid'_'$func
$func' | read -z prompt
echo -n $prompt >'$__async_prompt_tmpdir'/'$fish_pid'_'$func
end
end

Expand Down

0 comments on commit 1f8c94a

Please sign in to comment.