From 7f36f919df16a02987669603153685c74d8502dd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 22 Jul 2022 08:18:01 +0200 Subject: open https://github.com/symfony/symfony/pull/47022 fix command path --- composer-bash-completion | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'composer-bash-completion') diff --git a/composer-bash-completion b/composer-bash-completion index 5d484cc..6b3d1ea 100644 --- a/composer-bash-completion +++ b/composer-bash-completion @@ -13,6 +13,8 @@ _sf_composer() { # for an alias, get the real script behind it if [[ $(type -t $sf_cmd) == "alias" ]]; then sf_cmd=$(alias $sf_cmd | sed -E "s/alias $sf_cmd='(.*)'/\1/") + else + sf_cmd=$(type -p $sf_cmd) fi if [ ! -f "$sf_cmd" ]; then @@ -22,7 +24,7 @@ _sf_composer() { local cur prev words cword _get_comp_words_by_ref -n := cur prev words cword - local completecmd=("$sf_cmd" "_complete" "-sbash" "-c$cword" "-S2.3.10") + local completecmd=("$sf_cmd" "_complete" "-sbash" "-c$cword" "-S2.4.0-RC1") for w in ${words[@]}; do w=$(printf -- '%b' "$w") # remove quotes from typed values -- cgit