Browse Source

Find package.json

pull/2/head
Luke Childs 8 years ago
parent
commit
6bbbf9c264
  1. 11
      npm-run-completion.zsh

11
npm-run-completion.zsh

@ -0,0 +1,11 @@
filename="package.json"
dir=$PWD
while [ ! -e "$dir/$filename" ]; do
dir=${dir%/*}
if [ "$dir" = "" ]; then
break;
fi
done
if [ ! "$dir" = "" ]; then
echo "$dir/$filename";
fi
Loading…
Cancel
Save