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