aboutsummaryrefslogtreecommitdiff
path: root/libexec/recit-edit
blob: 7431e643f320a9f4b1e7431a2897f65f2fc0813c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
# Usage: recit edit
# Summary: Open DB in $EDITOR

set -e

recfile=$(recit-file)

if [[ -z ${EDITOR+x} ]]; then
  echo "$EDITOR is not defined please pass a message"
  exit 1
fi

command $EDITOR "$recfile"