Skip to content

Commit

Permalink
add support for bash Version 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Falco Schaffrath committed Jun 25, 2019
1 parent 7789adf commit dfdb60c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ completion+="\n{"
completion+="\n local cur"
completion+="\n local prev"
completion+="\n"
completion+="\n cur=\"\${COMP_WORDS[COMP_CWORD]}\""
completion+="\n prev=\"\${COMP_WORDS[COMP_CWORD-1]}\""
completion+="\n _get_comp_words_by_ref -n : cur prev"
completion+="\n"
completion+="\n local -a words=("
# generate list of commands
Expand Down
3 changes: 1 addition & 2 deletions sfdx.bash
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ _sfdx()
local cur
local prev

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

local -a words=(
force:alias:list \
Expand Down

0 comments on commit dfdb60c

Please sign in to comment.