Added a repl.sh sample script to the contrib/ directory.

This commit is contained in:
John Wiegley 2009-02-04 20:52:40 -04:00
parent f8ba4165fe
commit 066aef6090

13
contrib/repl.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
EXEC=$(which ledger)
if [[ -z "$EXEC" ]]; then
EXEC=$HOME/Products/ledger/ledger
fi
if [[ ! -x "$EXEC" ]]; then
echo Cannot find Ledger executable
exit 1
fi
LESS=--quit-if-one-screen exec $EXEC --pager less "$@"