From 066aef6090d5801e9e8452692c2478320dad48d3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Feb 2009 20:52:40 -0400 Subject: Added a repl.sh sample script to the contrib/ directory. --- contrib/repl.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 contrib/repl.sh (limited to 'contrib') diff --git a/contrib/repl.sh b/contrib/repl.sh new file mode 100755 index 00000000..42fb54c6 --- /dev/null +++ b/contrib/repl.sh @@ -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 "$@" -- cgit v1.2.3