Added a repl.sh sample script to the contrib/ directory.
This commit is contained in:
parent
f8ba4165fe
commit
066aef6090
1 changed files with 13 additions and 0 deletions
13
contrib/repl.sh
Executable file
13
contrib/repl.sh
Executable 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 "$@"
|
||||
Loading…
Add table
Reference in a new issue