diff options
Diffstat (limited to 'composer-bash-completion')
-rw-r--r-- | composer-bash-completion | 4 |
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 |