File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 55# Modifying it manually is not recommended
66< %= function_name %> () {
77 local cur=${COMP_WORDS[COMP_CWORD]}
8- local comp_line=" ${COMP_WORDS[* ]: 1} "
8+ local comp_line=" ${COMP_WORDS[@ ]: 1} "
99
1010 case " $comp_line " in
1111% patterns.each do |pattern|
Original file line number Diff line number Diff line change 55# Modifying it manually is not recommended
66_mygit_completions () {
77 local cur=${COMP_WORDS[COMP_CWORD]}
8- local comp_line=" ${COMP_WORDS[* ]: 1} "
8+ local comp_line=" ${COMP_WORDS[@ ]: 1} "
99
1010 case " $comp_line " in
1111 ' status' * ) COMPREPLY=($( compgen -W " --help --verbose --branch $( git branch 2> /dev/null) " -- " $cur " ) ) ;;
Original file line number Diff line number Diff line change 55# Modifying it manually is not recommended
66_mycomps () {
77 local cur=${COMP_WORDS[COMP_CWORD]}
8- local comp_line=" ${COMP_WORDS[* ]: 1} "
8+ local comp_line=" ${COMP_WORDS[@ ]: 1} "
99
1010 case " $comp_line " in
1111 ' status' * ) COMPREPLY=($( compgen -W " --help --verbose --branch $( git branch 2> /dev/null) " -- " $cur " ) ) ;;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ give_comps() {
66 echo $'# Modifying it manually is not recommended'
77 echo $'_mygit_completions() {'
88 echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
9- echo $' local comp_line="${COMP_WORDS[* ]:1}"'
9+ echo $' local comp_line="${COMP_WORDS[@ ]:1}"'
1010 echo $''
1111 echo $' case "$comp_line" in'
1212 echo $' \'status\'*) COMPREPLY=($(compgen -W "--help --verbose --branch $(git branch 2> /dev/null)" -- "$cur")) ;;'
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ send_completions() {
66 echo $'# Modifying it manually is not recommended'
77 echo $'_completely_completions() {'
88 echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
9- echo $' local comp_line="${COMP_WORDS[* ]:1}"'
9+ echo $' local comp_line="${COMP_WORDS[@ ]:1}"'
1010 echo $''
1111 echo $' case "$comp_line" in'
1212 echo $' \'generate\'*) COMPREPLY=($(compgen -A directory -W "--help --force" -- "$cur")) ;;'
Original file line number Diff line number Diff line change 55# Modifying it manually is not recommended
66_completely_completions () {
77 local cur=${COMP_WORDS[COMP_CWORD]}
8- local comp_line=" ${COMP_WORDS[* ]: 1} "
8+ local comp_line=" ${COMP_WORDS[@ ]: 1} "
99
1010 case " $comp_line " in
1111 ' generate' * ) COMPREPLY=($( compgen -A directory -W " --help --force" -- " $cur " ) ) ;;
Original file line number Diff line number Diff line change 55# Modifying it manually is not recommended
66_completely_completions () {
77 local cur=${COMP_WORDS[COMP_CWORD]}
8- local comp_line=" ${COMP_WORDS[* ]: 1} "
8+ local comp_line=" ${COMP_WORDS[@ ]: 1} "
99
1010 case " $comp_line " in
1111 ' generate' * ) COMPREPLY=($( compgen -A directory -W " --help --force" -- " $cur " ) ) ;;
You can’t perform that action at this time.
0 commit comments