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 dcf09d6 commit f3c196aCopy full SHA for f3c196a
src/Symfony/Component/Console/Resources/completion.bash
@@ -9,6 +9,12 @@ _sf_{{ COMMAND_NAME }}() {
9
# Use newline as only separator to allow space in completion values
10
IFS=$'\n'
11
local sf_cmd="${COMP_WORDS[0]}"
12
+
13
+ # for an alias, get the real script behind it
14
+ if [[ $(type -t $sf_cmd) == "alias" ]]; then
15
+ sf_cmd=$(alias $sf_cmd | sed -E "s/alias $sf_cmd='(.*)'/\1/")
16
+ fi
17
18
if [ ! -f "$sf_cmd" ]; then
19
return 1
20
fi
0 commit comments