summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/repl.sh13
1 files changed, 13 insertions, 0 deletions
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 "$@"