aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibexec/recit-recsel-entries4
-rwxr-xr-xlibexec/recit-recsel-projects4
-rwxr-xr-xlibexec/recit-setup2
3 files changed, 5 insertions, 5 deletions
diff --git a/libexec/recit-recsel-entries b/libexec/recit-recsel-entries
index f2ca2f9..e447712 100755
--- a/libexec/recit-recsel-entries
+++ b/libexec/recit-recsel-entries
@@ -4,8 +4,8 @@ set -e
recfile=$(recit-file)
if [[ "$1" = "" ]]; then
- out=$(recsel -t Entry "$recfile" | recfmt -f share/recit/templates/entries.templ)
+ out=$(recsel -t Entry "$recfile" | recfmt -f "$_RECIT_ROOT/share/recit/templates/entries.templ")
else
- out=$(recsel -t Entry "$recfile" -e "$1" | recfmt -f share/recit/templates/entries.templ)
+ out=$(recsel -t Entry "$recfile" -e "$1" | recfmt -f "$_RECIT_ROOT/share/recit/templates/entries.templ")
fi
echo -e "$out"
diff --git a/libexec/recit-recsel-projects b/libexec/recit-recsel-projects
index 017e3e4..5838dd5 100755
--- a/libexec/recit-recsel-projects
+++ b/libexec/recit-recsel-projects
@@ -4,8 +4,8 @@ set -e
recfile=$(recit-file)
if [[ "$1" = "" ]]; then
- out=$(recsel -t Project "$recfile" | recfmt -f share/recit/templates/projects.templ)
+ out=$(recsel -t Project "$recfile" | recfmt -f "$_RECIT_ROOT/share/recit/templates/projects.templ")
else
- out=$(recsel -t Project "$recfile" -e "$1" | recfmt -f share/recit/templates/projects.templ)
+ out=$(recsel -t Project "$recfile" -e "$1" | recfmt -f "$_RECIT_ROOT/share/recit/templates/projects.templ")
fi
echo -e "$out"
diff --git a/libexec/recit-setup b/libexec/recit-setup
index 9189bcc..bc8ddf7 100755
--- a/libexec/recit-setup
+++ b/libexec/recit-setup
@@ -12,5 +12,5 @@ if ! [[ "$1" = "force" ]]; then
fi
fi
-cat share/recit/recit.example.rec > "$HOME/.recit.rec"
+cat "$_RECIT_ROOT/share/recit/recit.example.rec" > "$HOME/.recit.rec"
echo "$HOME/.recit.rec" > "$HOME/.recit.location"