aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-08-21 13:12:16 +0000
committerJulio Capote <jcapote@gmail.com>2022-08-21 13:12:16 +0000
commitfa6770898e323a5ea0b8ff98d3f7a8e319b87aec (patch)
treef7f5a73bda537129dd65f40aa90da77252b2629f
parentb711384b092fd4a2b93b4b4ef1cb0d0ab7b09ed8 (diff)
downloadrecit-fa6770898e323a5ea0b8ff98d3f7a8e319b87aec.tar.gz
use template file from share
Diffstat (limited to '')
-rwxr-xr-xlibexec/recit-setup6
-rw-r--r--share/recit/recit.example.rec13
2 files changed, 16 insertions, 3 deletions
diff --git a/libexec/recit-setup b/libexec/recit-setup
index d3da34c..fb8ce61 100755
--- a/libexec/recit-setup
+++ b/libexec/recit-setup
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-source lib/recfile_template
+set -e
if [[ -f "$HOME/.recit.location" ]]; then
recfile_location=$(cat "$HOME/.recit.location")
@@ -8,5 +8,5 @@ if [[ -f "$HOME/.recit.location" ]]; then
exit 1
fi
-recfile_template > "$HOME/.recit.db"
-echo "$HOME/.recit.db" > "$HOME/.recit.location"
+cat share/recit/recit.example.rec > "$HOME/.recit.rec"
+echo "$HOME/.recit.rec" > "$HOME/.recit.location"
diff --git a/share/recit/recit.example.rec b/share/recit/recit.example.rec
new file mode 100644
index 0000000..81cfc8c
--- /dev/null
+++ b/share/recit/recit.example.rec
@@ -0,0 +1,13 @@
+%rec: Project
+%key: Id
+
+Id: example-project
+Status: open
+Notes: blah blah
+
+%rec: Entry
+%key: Id
+%type: Time date
+%auto: Time
+%type: ProjectRef rec Project
+%sort: Time \ No newline at end of file