summaryrefslogtreecommitdiffstats
path: root/composer-bash-completion
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-07-22 08:18:01 +0200
committerRemi Collet <remi@php.net>2022-07-22 08:18:01 +0200
commit7f36f919df16a02987669603153685c74d8502dd (patch)
tree665ceb8d5ea2467d24f5f3866675a7050be54a99 /composer-bash-completion
parent3763cc67cef6536302ed8c994de0a0c6bfa6923c (diff)
open https://github.com/symfony/symfony/pull/47022 fix command path
Diffstat (limited to 'composer-bash-completion')
-rw-r--r--composer-bash-completion4
1 files changed, 3 insertions, 1 deletions
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