Skip to content

Commit

Permalink
[Console] [Completion] Make zsh completion run in non interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Sep 2, 2022
1 parent 0ca5051 commit 4e5add4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Resources/completion.zsh
Expand Up @@ -31,7 +31,7 @@ _sf_{{ COMMAND_NAME }}() {
fi

# Prepare the command to obtain completions
requestComp="${words[0]} ${words[1]} _complete -szsh -a{{ VERSION }} -c$((CURRENT-1))" i=""
requestComp="${words[0]} ${words[1]} _complete --no-interaction -szsh -a{{ VERSION }} -c$((CURRENT-1))" i=""
for w in ${words[@]}; do
w=$(printf -- '%b' "$w")
# remove quotes from typed values
Expand Down

0 comments on commit 4e5add4

Please sign in to comment.