Files
libuev/.stuff/bin/Glimpse
T
2011-01-10 16:11:31 +01:00

21 lines
380 B
Bash
Executable File

#!/bin/bash
##
# $Id$
# (C) Copyright 2009 Amplex, fm@amplex.dk
#
# ABSTRACT: Global grep with prebuilt index
##
Dir=$(pwd)
while [ "$Dir" ] ;do
[ -f $Dir/.glimpse_index ] && break
Dir=${Dir%/*}
done
[ "$Dir" ] || { echo "No glimpse index in this directory branch" ; exit 1; }
echo "-- Paths relative to: $Dir"
exec glimpse-tt -y -H $Dir "$@"
// vim: set sw=3 sts=3 et: