Luke Childs
9 years ago
1 changed files with 12 additions and 10 deletions
@ -1,11 +1,13 @@ |
|||
filename="package.json" |
|||
dir=$PWD |
|||
while [ ! -e "$dir/$filename" ]; do |
|||
dir=${dir%/*} |
|||
if [ "$dir" = "" ]; then |
|||
break; |
|||
_npm_run_completion() { |
|||
local filename="package.json" |
|||
local dir=$PWD |
|||
while [ ! -e "$dir/$filename" ]; do |
|||
dir=${dir%/*} |
|||
if [ "$dir" = "" ]; then |
|||
break; |
|||
fi |
|||
done |
|||
if [ ! "$dir" = "" ]; then |
|||
echo "$dir/$filename"; |
|||
fi |
|||
done |
|||
if [ ! "$dir" = "" ]; then |
|||
echo "$dir/$filename"; |
|||
fi |
|||
} |
|||
|
Loading…
Reference in new issue