We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7c01c9 commit b2f3d36Copy full SHA for b2f3d36
env/redo_completion.sh
@@ -91,8 +91,8 @@ __redo_completion () {
91
92
compgen_res=$(compgen -W "$compgen_arg" "$this_word")
93
94
- # if nothing in cache matches, do synchronous anyway
95
- if [ -z "$compgen_res" ]; then
+ # if nothing in cache matches, do synchronous anyway (but only on first run to make it responsive)
+ if [ "$first_run" = true ] && [ -z "$compgen_res" ]; then
96
do_synch=true
97
elif ! ps p "$__redo_what_bg_pid" >/dev/null 2>&1; then
98
# pid is not alive, so start bg process
0 commit comments