Skip to content

Commit bc28271

Browse files
authored
Merge pull request #169 from DannyBen/fix/zsh-autocomplete
Fix autocomplete in ZSH
2 parents 1e313a0 + 3e55adc commit bc28271

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

bashly.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
1818
s.required_ruby_version = ">= 2.7.0"
1919

2020
s.add_runtime_dependency 'colsole', '~> 0.6'
21-
s.add_runtime_dependency 'completely', '~> 0.2'
21+
s.add_runtime_dependency 'completely', '~> 0.3'
2222
s.add_runtime_dependency 'mister_bin', '~> 0.7'
2323
s.add_runtime_dependency 'requires', '~> 0.1'
2424

examples/completions/src/lib/send_completions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ send_completions() {
77
echo $'# Modifying it manually is not recommended'
88
echo $'_cli_completions() {'
99
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
10-
echo $' local comp_line="${COMP_WORDS[*]:1}"'
10+
echo $' local comp_line="${COMP_WORDS[@]:1}"'
1111
echo $''
1212
echo $' case "$comp_line" in'
1313
echo $' \'completions\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'

spec/approvals/cli/add/comp-function-file

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ send_completions() {
77
echo $'# Modifying it manually is not recommended'
88
echo $'_cli_completions() {'
99
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
10-
echo $' local comp_line="${COMP_WORDS[*]:1}"'
10+
echo $' local comp_line="${COMP_WORDS[@]:1}"'
1111
echo $''
1212
echo $' case "$comp_line" in'
1313
echo $' \'download\'*) COMPREPLY=($(compgen -W "--force --help -f -h" -- "$cur")) ;;'

spec/approvals/cli/add/comp-script-file

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Modifying it manually is not recommended
66
_cli_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
'download'*) COMPREPLY=($(compgen -W "--force --help -f -h" -- "$cur")) ;;

spec/approvals/completions/function

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ custom_name() {
66
echo $'# Modifying it manually is not recommended'
77
echo $'_get_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 $' \'\'*) COMPREPLY=($(compgen -A file -W "--force --help --verbose --version -h -v" -- "$cur")) ;;'

spec/approvals/completions/script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Modifying it manually is not recommended
66
_say_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
'goodbye universe'*) COMPREPLY=($(compgen -W "$(git branch) --color --help --verbose -c -h -v" -- "$cur")) ;;

spec/approvals/examples/completions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Options:
7070
# Modifying it manually is not recommended
7171
_cli_completions() {
7272
local cur=${COMP_WORDS[COMP_CWORD]}
73-
local comp_line="${COMP_WORDS[*]:1}"
73+
local comp_line="${COMP_WORDS[@]:1}"
7474

7575
case "$comp_line" in
7676
'completions'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;

spec/approvals/libraries/completions_function/files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
echo $'# Modifying it manually is not recommended'
1111
echo $'_download_completions() {'
1212
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
13-
echo $' local comp_line="${COMP_WORDS[*]:1}"'
13+
echo $' local comp_line="${COMP_WORDS[@]:1}"'
1414
echo $''
1515
echo $' case "$comp_line" in'
1616
echo $' \'\'*) COMPREPLY=($(compgen -W "--force --help --version -f -h -v" -- "$cur")) ;;'

spec/approvals/libraries/completions_script/files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Modifying it manually is not recommended
99
_download_completions() {
1010
local cur=${COMP_WORDS[COMP_CWORD]}
11-
local comp_line="${COMP_WORDS[*]:1}"
11+
local comp_line="${COMP_WORDS[@]:1}"
1212

1313
case "$comp_line" in
1414
''*) COMPREPLY=($(compgen -W "--force --help --version -f -h -v" -- "$cur")) ;;

0 commit comments

Comments
 (0)