Skip to content

Commit 468acb2

Browse files
author
Falco Schaffrath
committed
add support for bash Version 4
1 parent 7789adf commit 468acb2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

generate.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ completion+="\n{"
4343
completion+="\n local cur"
4444
completion+="\n local prev"
4545
completion+="\n"
46-
completion+="\n cur=\"\${COMP_WORDS[COMP_CWORD]}\""
47-
completion+="\n prev=\"\${COMP_WORDS[COMP_CWORD-1]}\""
46+
completion+="\n _get_comp_words_by_ref -n : cur prev
4847
completion+="\n"
4948
completion+="\n local -a words=("
5049
# generate list of commands

sfdx.bash

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ _sfdx()
3333
local cur
3434
local prev
3535

36-
cur="${COMP_WORDS[COMP_CWORD]}"
37-
prev="${COMP_WORDS[COMP_CWORD-1]}"
36+
_get_comp_words_by_ref -n : cur prev
3837

3938
local -a words=(
4039
force:alias:list \

0 commit comments

Comments
 (0)