File: repl.sh

package info (click to toggle)
ledger 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,964 kB
  • sloc: cpp: 39,393; python: 4,476; perl: 1,309; sh: 477; lisp: 435; yacc: 103; makefile: 58
file content (13 lines) | stat: -rwxr-xr-x 236 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
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 "$@"