npx autocomplete npx_autocomplete.sh 参考 #!/bin/bash _npx() { local dir=$(pwd -P) while [[ -n "$dir" ]]; do if [[ ! -d $dir/node_modules/.bin ]]; then dir=${dir%/*} continue fi local execs=( `cd $dir/node_modules/.bin; find -L . -type f -executable`