Skip to content

Commit

Permalink
Update bun.bash
Browse files Browse the repository at this point in the history
  • Loading branch information
RiskyMH authored Feb 11, 2025
1 parent 796a0b2 commit f5842a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/bun.bash
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ _read_scripts_in_package_json() {

[[ "${package_json}" =~ "\"scripts\""[[:space:]]*":"[[:space:]]*\{(.*)\} ]] && {
local package_json_compreply;
readarray -t package_json_compreply < <(bun -e 'import("package.json").then(p=>Object.keys(p.scripts).forEach(k=>console.log(k)))')
readarray -t package_json_compreply < <(bun -e 'import("./package.json").then(p=>Object.keys(p.scripts).forEach(k=>console.log(k)))')
COMPREPLY+=( $(compgen -W "${package_json_compreply[*]}" -- "${cur_word}") );
}

Expand Down

0 comments on commit f5842a7

Please sign in to comment.